Update test-running-guide.md

This commit is contained in:
Patrick Erichsen 2025-07-10 09:52:11 -07:00
parent cb6742df92
commit e881d791a3

View file

@ -1,5 +1,5 @@
---
globs: '["gui/**/*", "core/**/*"]'
globs: ["gui/**/*", "core/**/*"]
description: Provides test running instructions for GUI and core folders
alwaysApply: false
---
@ -7,15 +7,19 @@ 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
- 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
- We are transitioning to vitest, so use that when creating new tests