Skip to content

Commit 4395062

Browse files
committed
update ai test instructions
1 parent 90b6437 commit 4395062

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ai/references/tests.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ pnpm run test ./src/components/Button.test.ts
2525

2626
We use vitest for testing. We almost NEVER mock anything. Start with a top-level "describe", and have multiple "it" statements inside of it.
2727

28+
New test files should be placed right next to the file being tested. For example:
29+
30+
- Source file: `./src/services/MyService.ts`
31+
- Test file: `./src/services/MyService.test.ts`
32+
2833
When writing anything that needs redis or postgresql, we have some internal "testcontainers" that are used to spin up a local instance, redis, or both.
2934

3035
redisTest:

0 commit comments

Comments
 (0)