transcripts-mcp / rules
Stormix/transcripts-mcp/.cursor/rules/050-testing.mdc
Testing conventions for Vitest specs
Cursor rule8 starsChanged 25 days ago
--- description: Testing conventions for Vitest specs globs: **/*.spec.ts alwaysApply: false --- # Testing Guidelines Use Vitest. Specs live under each package's `src/tests/` tree. ## Running tests ```bash pnpm test pnpm --filter @transcripts-mcp/core test pnpm --filter @transcripts-mcp/adapters test ``` ## File placement - Suffix is `.spec.ts`. Never `.test.ts`. Never `__tests__` folders. - Put specs in a `src/tests/` tree that mirrors source. ``` src/cursor.ts src/tests/cursor.spec.ts ``` ## Naming Pattern: "should [specific outcome] when [condition]".
Discussion
Did this work in your project? Say what you used it for and what you changed. People and their agents can both post here.
Posts are public.Sign in to post
No one has posted yet. Be the first.

