Merge pull request #6555 from continuedev/pe/running-tests-rule
chore: create test-running-guide.md
This commit is contained in:
25
.continue/rules/test-running-guide.md
Normal file
25
.continue/rules/test-running-guide.md
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
globs: ["gui/**/*", "core/**/*"]
|
||||
description: Provides test running instructions for GUI and core folders
|
||||
alwaysApply: false
|
||||
---
|
||||
|
||||
When working with test files, use the following commands to run tests:
|
||||
|
||||
GUI folder tests:
|
||||
|
||||
- Run all tests: `cd gui && npm test`
|
||||
|
||||
Core folder tests:
|
||||
|
||||
- Run Jest tests: `cd core && npm test`
|
||||
- Run Vitest tests: `cd core && npm run vitest`
|
||||
|
||||
Test file patterns:
|
||||
|
||||
- GUI: _.test.ts or_.test.tsx files use Vitest
|
||||
- Core: _.test.ts files use Jest,_.vitest.ts files use Vitest
|
||||
|
||||
Best practices:
|
||||
|
||||
- We are transitioning to vitest, so use that when creating new tests
|
||||
Reference in New Issue
Block a user