Unit testing Cursor rules

439 tagged Unit testing, measured the same way as everything else here.

Browse within: hacktoberfest 621c-enterprise 61hacktoberfest2022 60yaxunit 60cursor 53cursorrules 34nodejs 19cli 18prisma 14cursor-ai 13nextjs 13ai-coding 12javascript 12cursor-rules 11

gonavi-go

01

Syngnat/GoNavi

Cursor rule Cursor

A Go coding rule set for the GoNavi repository, based on common Go style guides and the project's own conventions. It covers file structure, errors, context, concurrency, logging, and tests.

not rated 2.1k +7 today A 0 tokens original Apache-2.0

expecttest

02

ezyang/codemcp

Cursor rule Cursor

We use expecttest for testing. If you need to match against a multiline string or some output that is likely to change in the future (e.g., the kind of thing you would have ordinarily done an assertIn with), use an expect test. If a test is assertExpectedInline and it fails, use 'accept' command to update the output…

not rated 1.6k +1 9mo ago A 0 tokens original Apache-2.0

testing

03

thedaviddias/llms-txt-hub

Cursor rule Cursor

Rules for writing Jest tests in TypeScript.

not rated 913 +3 today A 1,167 tokens

commit-checks

04

strelov1/freehire

Cursor rule Cursor

Run gofmt, go vet, and unit tests before committing Go files.

not rated 819 +109 today A 175 tokens original MIT

test-scripts

06

ivo-toby/mcp-openapi-server

Cursor rule Cursor

Never try to run a test-script from commandline using node -e. This will always fail, you'll need to write a typescript test file, build that and execute that.

not rated 300 +2 4mo ago A 49 tokens original MIT

testing

07

JasonBoy/msw-mcp

Cursor rule Cursor

Add Vitest tests when changing behavior in this monorepo.

not rated 81 3mo ago A 221 tokens original MIT

testing

08

udecode/plate-template

Cursor rule Cursor

Cursor rule "testing" from udecode/plate-template, covering testing goal, core rules, seam selection, fixtures and assertions and quick reference.

not rated 59 yesterday A 315 tokens copy · 100% MIT

project-rules

09

terryso/todo-cli

Cursor rule Cursor

A Cursor rule file containing project development guidance, including TDD, BDD, unit testing, and general practices. TDD means writing tests before code; BDD describes expected behavior in user-focused terms.

not rated 34 1y ago A 1,424 tokens

frozenlib/mcp-attr

Cursor rule Cursor

A set of Cursor coding rules for testing generated code from a Rust Model Context Protocol server attribute system. Code generation means producing source code automatically from declarations or annotations.

not rated 28 1y ago A 745 tokens

testing-standards

12

wjgogogo/cursor-rules

Cursor rule Cursor

A set of testing rules covering test practices and strategy. It discusses unit tests for small pieces of code, integration tests for connected components, and end-to-end tests for complete workflows.

not rated 22 11mo ago A 0 tokens

testing

13

aa-io/site

Cursor rule Cursor

This project uses Vitest for testing with React Testing Library for component testing. The testing stack includes.

not rated 18 3mo ago A 2,028 tokens

testing

15

akngs/s4

Cursor rule Cursor

When writing tests, always follow these best practices.

not rated 13 9mo ago A 0 tokens original MIT

ui-kit-react

16

epam/ai-dial-ui-kit

Cursor rule Cursor

React/TypeScript UI kit conventions — components, stories, tests, exports.

not rated 10 changed 24d ago A 0 tokens original Apache-2.0

testing

18

bestcarly/opc-coding-guide

Cursor rule Cursor

A set of project rules for writing unit and integration tests. Unit tests check one function or module, while integration tests check several parts working together, often with a test database.

not rated 7 7mo ago A 1,890 tokens original MIT

CharLEE-X/effect-cursor-rules

Cursor rule Cursor needs its repo

Comprehensive Effect-TS service architecture patterns covering stores, usecases, handlers, and testing for building scalable applications.

not rated 6 1y ago A 22 tokens original MIT

rspec-let-do-blocks

20

panozzaj/cursor-rules

Cursor rule Cursor

Cursor rule "rspec-let-do-blocks" from panozzaj/cursor-rules, covering multi-line array, multi-line method call with keyword args, multi-line hash definition, complex single line expression and using { ... } for multi-line blocks.

not rated 3 1y ago A 0 tokens original MIT

tecton-unit-testing

21

tecton-ai/tecton-mcp

Cursor rule Cursor

Always follow these rules when creating or modifying Tecton unit tests.

not rated 3 1y ago A 13 tokens original MIT

testing

22

humzakt/dev-starter-kit

Cursor rule Cursor

Testing conventions and patterns.

not rated 3 7mo ago A 0 tokens original MIT

testing

24

SecondLifes/code-intel

Cursor rule Cursor

Cursor rule "testing" from SecondLifes/code-intel, covering testing — rules, the two-tier split (non-negotiable), naming — the name states the locked-in behavior, good — the real convention (tests/testchunker.py) and weak — names the function, not the behavior.

not rated 2 1mo ago A 854 tokens original Apache-2.0

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: