RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Copilot instructions/supabase/supabase

Copilot instructions

.github/instructions/studio-testing.instructions.md
Copilot instructions

Quality

55/100

Scores the file, not the repository.

Length

177 words

5 headings · 0 code blocks

Repository

108k

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
supabase/supabase/.github/instructions/studio-testing.instructions.mdRawGitHub
1---
2applyTo: "apps/studio/**"
3---
4 
5# Studio Testing Review Rules
6 
7All comments are **advisory**.
8 
9## Core Principle
10 
11Push logic out of React components into pure `.utils.ts` functions, then test those functions exhaustively. Only use component tests for complex UI interactions.
12 
13## When to Comment
14 
15- PR adds **business logic inline in a component** that could be extracted to a `ComponentName.utils.ts` file next to the component and unit tested at `tests/components/.../ComponentName.utils.test.ts`
16- PR adds a **utility function without test coverage**
17- PR uses **component tests for pure logic** that should be a unit test on a pure function
18- PR adds a **feature used in both self-hosted and platform** without E2E test consideration
19 
20## Which Test Type to Suggest
21 
22- **Pure transformation** (parse, format, validate, compute) → extract to `.utils.ts` + unit test with vitest
23- **Complex UI interaction** → component test with `customRender` (or E2E if shared with self-hosted)
24- **E2E tests** should cover both click interactions AND keyboard shortcuts
25- **No tests at all** for non-trivial changes → nudge to add coverage
26 
27## Reference
28 
29See `.claude/skills/studio-testing/SKILL.md` for the full testing standard.
30 

Sections

  • Studio Testing Review Rules
  • Core Principle
  • When to Comment
  • Which Test Type to Suggest
  • Reference

What it covers

testtypestesting-strategygit-prdo-not

Stack — with the evidence

typescript

(1.00)

node

(1.00)

nextjs

(1.00)

supabase

(1.00)

vitest

(0.95)

postgres

(0.90)

react

(0.70)

vue

(0.70)

nuxt

(0.70)

tailwind

(0.70)

vite

(0.70)

playwright

(0.70)

vercel

(0.70)

aws

(0.70)

javascript

(0.60)

swift

(0.60)

jupyter

(0.60)

monorepo

(0.60)

pnpm

(0.60)

github-actions

(0.60)

python

(0.50)

Glob targeting

  • apps/studio/**

Format

Copilot instructions

Two layers: one always-on repo file, plus optional glob-scoped instruction files. Lives under .github/ rather than the repo root, which is the tell that it is aimed at the GitHub platform surface as much as the editor.

What the corpus says about it

Repository

Owner
supabase
Language
—
License
—
Archived
no

All configs in this repo

Also in supabase/supabase

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
supabase/supabase.claude/CLAUDE.md · 108kCLAUDE.mdtypescriptnode+19testlint-formatstylearch+197/1003 days ago
supabase/supabase.claude/skills/vercel-composition-patterns/AGENTS.md · 108kAGENTS.mdtypescriptnode+19styleapiuido-not45/1003 days ago
supabase/supabase.github/copilot-instructions.md · 108kCopilot instructionstypescriptnode+19lint-formatstylegitagent-behaviour56/1003 days ago
supabase/supabase.github/instructions/studio-composition-patterns.instructions.md · 108kCopilot instructionstypescriptnode+19stylegitapiui+161/1003 days ago
supabase/supabase.github/instructions/studio-copy.instructions.md · 108kCopilot instructionstypescriptnode+19uiagent-behaviourdocs25/1003 days ago
supabase/supabase.github/instructions/studio-e2e-tests.instructions.md · 108kCopilot instructionstypescriptnode+19teststyletesting-strategygit+260/1003 days ago
supabase/supabase.github/instructions/studio-error-handling.instructions.md · 108kCopilot instructionstypescriptnode+19gitdo-not57/1003 days ago
supabase/supabase.github/instructions/studio-shadcn-components.instructions.md · 108kCopilot instructionstypescriptnode+19gituido-not55/1003 days ago
supabase/supabase.github/instructions/studio-shortcuts.instructions.md · 108kCopilot instructionstypescriptnode+19stylegitdo-not61/1003 days ago
supabase/supabase.github/instructions/studio-telemetry.instructions.md · 108kCopilot instructionstypescriptnode+19stylegitdo-notdocs65/1003 days ago
supabase/supabaseapps/studio/CLAUDE.md · 108kCLAUDE.mdtypescriptnode+21testlint-formatstyletesting-strategy+181/1003 days ago
Diff against .claude/CLAUDE.md Diff against .claude/skills/vercel-composition-patterns/AGENTS.md Diff against .github/copilot-instructions.md Diff against .github/instructions/studio-composition-patterns.instructions.md Diff against .github/instructions/studio-copy.instructions.md Diff against .github/instructions/studio-e2e-tests.instructions.md Diff against .github/instructions/studio-error-handling.instructions.md Diff against .github/instructions/studio-shadcn-components.instructions.md Diff against .github/instructions/studio-shortcuts.instructions.md Diff against .github/instructions/studio-telemetry.instructions.md Diff against apps/studio/CLAUDE.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63Copilot instructionstypescriptreact+7buildlint-formatstylearch+4100/1003 days ago
HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17Copilot instructionsnodejavascriptsetupbuildtestlint-format+7100/1003 days ago
louislam/uptime-kuma.github/copilot-instructions.md · 90kCopilot instructionstypescriptjavascript+10setupbuildtestlint-format+9100/1003 days ago
JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 31kCopilot instructionstypescriptnode+7buildlint-formatstylearch+397/1002 days ago
bagisto/bagisto.github/copilot-instructions.md · 28kCopilot instructionsphplaravel+8setupbuildteststyle+597/1003 days ago
nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32Copilot instructionstypescriptnode+8setupbuildtestlint-format+1196/1003 days ago
thangaram611/second-brain.github/copilot-instructions.md · 0Copilot instructionstypescriptnode+12setupteststylearch+496/1003 days ago
darkmatter/nixmac.github/copilot-instructions.md · 24Copilot instructionstypescriptrust+14setupbuildtestlint-format+896/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack