.cursorrules (deprecated)
.cursorrules.cursorrulesroot
Quality
78/100
Scores the file, not the repository.Length
264 words
8 headings · 0 code blocksRepository
91k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1## Test Configuration23This Storybook repository uses Vitest as the test runner. Here are the key commands and configuration:45### Test Scripts67- `yarn test` - Run all tests (from root directory, delegates to `cd code; yarn test`)8- `yarn test <test-name>` - Run focused tests matching the pattern9- `yarn test:watch` - Run tests in watch mode10- `yarn test:watch <test-name>` - Run focused tests in watch mode1112### Test Directory Structure1314- Tests are located in the `code/` directory15- Vitest configuration is in `code/vitest.workspace.ts`16- Test files typically follow the pattern `*.test.ts`, `*.test.tsx`, `*.spec.ts`, or `*.spec.tsx`1718### Running Tests in Cursor19201. Use Cmd+Shift+P (or Ctrl+Shift+P) and search for "Tasks: Run Task"212. Select from the available test tasks:22 - "Run All Tests" - Runs all tests23 - "Run Test (Watch Mode)" - Runs tests in watch mode24 - "Run Focused Test" - Prompts for test name/pattern to run specific tests25 - "Run Focused Test (Watch Mode)" - Runs specific tests in watch mode2627### Vitest Configuration2829- Workspace configuration: `./code/vitest.workspace.ts`30- Command line: `yarn --cwd code test`31- Root directory for tests: `./code/`3233### Test Execution Context3435- Tests run from the `code/` directory36- Use `NODE_OPTIONS=--max_old_space_size=4096` for memory optimization37- Supports both watch mode and single-run execution3839### Focused Test Patterns4041When running focused tests, you can use:4243- File names: `Button.test.ts`44- Test descriptions: `"should render correctly"`45- Directory patterns: `components/`46- Vitest patterns: `-t "pattern"` for test name matching4748### Test Mocking Rules4950Follow the spy mocking rules defined in `.cursor/rules/spy-mocking.mdc` for consistent mocking patterns with Vitest.51
Also in storybookjs/storybook
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| storybookjs/storybook.cursor/rules/spy-mocking.mdc · 91k | Cursor rules | teststyletesting-strategydo-not | 59/100 | 3 days ago | |
| storybookjs/storybookAGENTS.md · 91k | AGENTS.md | setupbuildtestlint-format+9 | 84/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| HerringtonDarkholme/megarepo.cursorrules · 17 | .cursorrules | setupbuildtestlint-format+13 | 96/100 | 3 days ago | |
| SkeneTechnologies/skene-cookbook.cursorrules · 51 | .cursorrules | setuptestlint-formatstyle+11 | 96/100 | 2 days ago | |
| survivorforge/cursor-rulesrules/devops-infrastructure/.cursorrules · 16 | .cursorrules | buildteststylesecurity+3 | 93/100 | 2 days ago | |
| survivorforge/cursor-rulesrules/devops-docker/.cursorrules · 16 | .cursorrules | setupbuildteststyle+4 | 93/100 | 2 days ago | |
| survivorforge/cursor-rulesrules/api-microservices/.cursorrules · 16 | .cursorrules | buildteststylearch+5 | 92/100 | 2 days ago | |
| fall-out-bug/sdp_lab.cursorrules · 0 | .cursorrules | setupbuildtestlint-format+3 | 86/100 | 3 days ago | |
| bashdeban/fastmind.cursorrules · 5 | .cursorrules | buildtestlint-formattypes+5 | 81/100 | 3 days ago | |
| forem/forem.cursorrules · 23k | .cursorrules | teststyletypesdatabase+4 | 71/100 | 3 days ago |
