FreeRules, agents & hooks
TypeScript, React and Node.js rules
- 174174 downloads
- 225225 likes
- 237237 saves
- Cursor
Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans
Use this resource to write Vitest unit tests for business logic
New
Free
In a terminal, from the folder you want:
npx --yes palatekit@latest install vitest-unit-tests-ruleFirst time: connect the CLI with
npx --yes palatekit@latest loginCursor writes focused tests for business logic and utility functions, mocks external dependencies with vi.mock before the imports, groups cases in describe blocks and limits each file to 3 to 5 tests. It detects whether the project uses TypeScript.
Mostly picked by
Updated November 2, 2026
You say
“Write the unit tests for the discount calculation, including edge cases.”

Rule published by PatrickJS under the CC0-1.0 license, delivered in its original version.
Listed unmodified
« vitest-unit-testing-cursorrules-prompt-file » (PatrickJS, CC0-1.0) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.
–
No ratings yet
Loading reviews…