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
Copy file name to clipboardExpand all lines: .roo/rules/rules.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
5
5
- Before attempting completion, always make sure that any code changes have test coverage
6
6
- Ensure all tests pass before submitting changes
7
+
- 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
8
+
- Tests must be run from the same directory as the `package.json` file that specifies `vitest` in `devDependencies`
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