| 1 | --- |
| 2 | globs: ["gui/**/*", "core/**/*"] |
| 3 | description: Provides test running instructions for GUI and core folders |
| 4 | alwaysApply: false |
| 5 | --- |
| 6 | |
| 7 | When working with test files, use the following commands to run tests: |
| 8 | |
| 9 | GUI folder tests: |
| 10 | |
| 11 | - Run all tests: `cd gui && npm test` |
| 12 | |
| 13 | Core folder tests: |
| 14 | |
| 15 | - Run Jest tests: `cd core && npm test` |
| 16 | - Run Vitest tests: `cd core && npm run vitest` |
| 17 | |
| 18 | Test file patterns: |
| 19 | |
| 20 | - GUI: _.test.ts or_.test.tsx files use Vitest |
| 21 | - Core: _.test.ts files use Jest,_.vitest.ts files use Vitest |
| 22 | |
| 23 | Best practices: |
| 24 | |
| 25 | - We are transitioning to vitest, so use that when creating new tests |