Skip to content

Commit 3586a6d

Browse files
restore original frontend-tests instructions
1 parent f0b5997 commit 3586a6d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
applyTo: "**/*.test.ts,**/*.test.tsx"
3+
---
4+
5+
## Guidelines for writing frontend tests
6+
7+
- `@testing-library/react` and `@testing-library/user-event` for rendering, querying, and manipulation
8+
- within the `main` package, use `renderWithProviders` from `@/test-utils` to render components with the necessary context providers
9+
- use `setMockResponse` and `urls` from `api/src/test-utils` for mocking API calls in tests
10+
- data factories for tests live in `api/src/test-utils/factories`. API Calls should be

0 commit comments

Comments
 (0)