From cb6742df92988e04c4ec8b0449d06fa50487a741 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 10 Jul 2025 09:41:16 -0700 Subject: [PATCH 1/2] Create test-running-guide.md --- .continue/rules/test-running-guide.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .continue/rules/test-running-guide.md diff --git a/.continue/rules/test-running-guide.md b/.continue/rules/test-running-guide.md new file mode 100644 index 000000000..b8566188d --- /dev/null +++ b/.continue/rules/test-running-guide.md @@ -0,0 +1,21 @@ +--- +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 \ No newline at end of file From e881d791a3fe7c8d46e30371ab8653248ba567d2 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 10 Jul 2025 09:52:11 -0700 Subject: [PATCH 2/2] Update test-running-guide.md --- .continue/rules/test-running-guide.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.continue/rules/test-running-guide.md b/.continue/rules/test-running-guide.md index b8566188d..479185878 100644 --- a/.continue/rules/test-running-guide.md +++ b/.continue/rules/test-running-guide.md @@ -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 \ No newline at end of file + +- We are transitioning to vitest, so use that when creating new tests