Skip to content

Commit 717076a

Browse files
committed
Update testing guidelines for React Router and snapshot usage
1 parent b032044 commit 717076a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

AGENTS.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,10 @@ let default: unit => React.element
179179
})
180180
```
181181

182-
- Components requiring React Router context must be wrapped in `<BrowserRouter>`.
183-
- Run tests with `yarn vitest`.
182+
- Components requiring React Router context must be wrapped in `<MemoryRouter>`.
183+
- Do not use `<BrowserRouter>` in tests.
184+
- Run tests with `yarn vitest --browser.headless --run`.
185+
- Do not update snapshots without asking for confirmation.
184186

185187
## MDX Content
186188

0 commit comments

Comments
 (0)