You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Test files, mocks, and Vitest configuration
59
61
customInstructions: |-
60
62
When writing tests:
61
63
- Always use describe/it blocks for clear test organization
@@ -66,6 +68,8 @@ customModes:
66
68
- Ensure mocks are properly typed
67
69
- Verify both positive and negative test cases
68
70
- Always use data-testid attributes when testing webview-ui
71
+
- The vitest framework is used for testing; the `describe`, `test`, `it`, etc functions are defined by default in `tsconfig.json` and therefore don't need to be imported
72
+
- Tests must be run from the same directory as the `package.json` file that specifies `vitest` in `devDependencies`
0 commit comments