testing Cursor ruleA

testing from okandemirel/strada.brain is a Cursor rule: instructions the Cursor agent follows in that repo.

Install it, pinned
mdr add okandemirel/strada.brain/.cursor/rules/testing.mdc@git:20260323.143c5b5

Pins git:20260323.143c5b5 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
Cursor rule
Repository
okandemirel/strada.brain
Path
.cursor/rules/testing.mdc
Versions recorded
1
Latest version
git:20260323.143c5b5, committed Mar 23, 2026
Size
573 bytes
Repository stars
25
License
MIT

Testing conventions and patterns.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Testing Rules

- Test runner: Vitest (not Jest) — run with `npm test`
- Tests are colocated next to source files, not in a separate directory
- Web portal tests: `npm run test:portal` (separate Vite project)
- Never skip or disable existing tests to make new code pass
- Use `vi.fn()` for mocks, `vi.spyOn()` for spies
- Test files follow `kebab-case.test.ts` naming
- Batched execution via `scripts/run-vitest-batches.mjs` — don't modify without approval

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add okandemirel/strada.brain/.cursor/rules/testing.mdc@sha256:455057b1fcd64e9e

The line at the top of this page pins the label git:20260323.143c5b5, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_vm2qjcxbyueqqe7s.svg)](https://markdownregistry.com/a/art_vm2qjcxbyueqqe7s)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Mar 23, 2026.

versioncommittedcommitsizeaudit
git:20260323.143c5b5 latest2026-03-23 143c5b5 573 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (573 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

okandemirel/strada.brain · 25 stars · license MIT · pushed 2026-10-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_vm2qjcxbyueqqe7s
GET https://markdownregistry.com/api/v1/resolve?ref=okandemirel/strada.brain/.cursor/rules/testing.mdc
GET https://markdownregistry.com/api/v1/blob/455057b1fcd64e9e103915add49216ddab2dd633a3174eca7c4bcf6f9bba7766

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: Cursor rules vs AGENTS.md · which agent file does what.

More from okandemirel/strada.brain

channels Cursor rule
okandemirel/strada.brain · .cursor/rules/channels.mdc · Rules for channel adapter implementations
git:20260323.143c5b5 · audit A · 25 stars
core Cursor rule
okandemirel/strada.brain · .cursor/rules/core.mdc · Rules for core orchestrator, bootstrap, and agent lifecycle code
git:20260323.143c5b5 · audit A · 25 stars
general Cursor rule
okandemirel/strada.brain · .cursor/rules/general.mdc · Strada.Brain general project conventions and coding standards
git:20260323.143c5b5 · audit A · 25 stars
web-portal Cursor rule
okandemirel/strada.brain · .cursor/rules/web-portal.mdc · Rules for the React + Vite web portal frontend
git:20260323.143c5b5 · audit A · 25 stars
AGENTS.md AGENTS.md file
okandemirel/strada.brain · AGENTS.md
git:20261014.19c5364 · audit A · 25 stars
CLAUDE.md CLAUDE.md file
okandemirel/strada.brain · CLAUDE.md
git:20260823.ba9b775 · audit A · 25 stars
file-utils SKILL.md skill
okandemirel/strada.brain · src/skills/bundled/file-utils/SKILL.md · File utilities — word count, line count, find duplicates, directory size
v1.0.0 · audit A · 25 stars
github-utils SKILL.md skill
okandemirel/strada.brain · src/skills/bundled/github-utils/SKILL.md · GitHub utilities — check PR status, list issues, view repo info
v1.0.0 · audit A · 25 stars
hello-world SKILL.md skill
okandemirel/strada.brain · src/skills/bundled/hello-world/SKILL.md · A test skill that echoes messages
v1.0.0 · audit B · 25 stars
json-utils SKILL.md skill
okandemirel/strada.brain · src/skills/bundled/json-utils/SKILL.md · JSON utilities — format, query with dot-path, compare/diff objects
v1.0.0 · audit A · 25 stars
system-info SKILL.md skill
okandemirel/strada.brain · src/skills/bundled/system-info/SKILL.md · System information — uptime, CPU/memory/disk resources, network interfaces
v1.0.0 · audit A · 25 stars
unity-helpers SKILL.md skill
okandemirel/strada.brain · src/skills/bundled/unity-helpers/SKILL.md · Unity project utilities — find scripts, list scenes, check project structure
v1.0.0 · audit A · 25 stars

Every file in okandemirel/strada.brain

Other files named testing

testing SKILL.md skill
garrytan/gbrain · skills/testing/SKILL.md · Skill validation framework PLUS daily test-suite health and regression intelligence. Validates skill conformance…
v1.1.0 · audit A · 31,463 stars
testing SKILL.md skill
davepoon/buildwithclaude · plugins/cc-best/skills/testing/SKILL.md · Testing strategies and methodologies including TDD, E2E testing, and multi-framework support
git:20260307.6b5172a · audit A · 3,704 stars
testing SKILL.md skill
live-codes/livecodes · .agents/skills/livecodes/testing/SKILL.md · Write and run automated tests with Jest and Testing Library in the browser. Import code from script editor, use watch…
git:20260914.daf8be4 · audit A · 1,526 stars
testing SKILL.md skill
team-commonly/commonly · fleet-skills/testing/SKILL.md · Testing and code quality context for Jest, React Testing Library, ESLint, and test patterns. Use when writing tests or…
git:20261031.de1e176 · audit A · 1,375 stars
testing Cursor rule
thedaviddias/llms-txt-hub · .cursor/rules/testing.mdc · Rules for writing Jest tests in TypeScript
git:20250301.62fad3c · audit A · 922 stars
testing SKILL.md skill
rsmdt/the-startup · plugins/team/skills/development/testing/SKILL.md · Writing effective tests and running them successfully. Covers layer-specific mocking rules, test design principles…
git:20260225.c94494b · audit A · 577 stars
testing SKILL.md skill
oliver-kriska/claude-elixir-phoenix · targets/codex/skills/testing/SKILL.md · Write or repair Elixir tests with ExUnit, sandbox isolation, async; Use
git:20260724.daea640 · audit A · 572 stars
testing SKILL.md skill
oliver-kriska/claude-elixir-phoenix · plugins/elixir-phoenix/skills/testing/SKILL.md · Write or repair Elixir tests with ExUnit, sandbox isolation, async reliability, Mox, ExMachina, and LiveViewTest. Use…
git:20260724.daea640 · audit A · 572 stars

Browse by kind, by grade A, or by owner.