testing
Skill by bluesky-social
Applies this monorepo's testing practices when writing, running or configuring tests. It covers choosing between vitest and jest, where test files belong, tsconfig wiring, and the dev-env fixture for integration tests. Written for contributors to this monorepo.
Install testing
Built from the published package, never by AI.
git clone --depth 1 https://github.com/bluesky-social/atproto /tmp/atproto && mkdir -p ~/.claude/skills && cp -r /tmp/atproto/.agents/skills/testing ~/.claude/skills/testingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/bluesky-social/atproto /tmp/atproto && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/atproto/.agents/skills/testing ~/.gemini/antigravity-cli/skills/testingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an assistant the testing conventions of this monorepo before it searches code for tests. It explains how to choose between Vitest and Jest by reading each package's config files, and where unit, integration and end-to-end tests belong. It also covers tsconfig.test.json wiring and how to run a single test file with pnpm test.
For integration tests, it describes the @atproto/dev-env fixture, which boots PDS, AppView, bsync, ozone and PLC services instead of mocking them. The source notes that these tests need postgres and redis, and it routes browser UI tests to a separate playwright skill. It is aimed at developers who add, extend or debug tests in this repository.
Written from the project's SKILL.md and checked against it.
What it can do
- Choose a test runnerPicks Vitest or Jest based on the package's vite, vitest or jest config files.
- Place test filesExplains when to colocate unit tests and when to use the package's ./tests folder.
- Wire tsconfig for testsDescribes tsconfig.build, tsconfig.test and tsconfig.config files and their references.
- Use the dev-env fixtureShows how to boot TestNetwork, TestNetworkNoAppView or TestPds for integration tests.
- Run a single test fileRuns one test file or a full package suite through pnpm test with the infra script.
- Handle snapshot testsUses forSnapshot() to replace DIDs, CIDs and timestamps with stable placeholders.
- Route UI testsSends browser-based user flow tests to the playwright skill for assertion strings.
- Enable test logsTurns on pino logging with LOG_ENABLED and writes output to a file with LOG_DESTINATION.
What you need
- Node.js and pnpm
- Docker for the test infra scripts
- Postgres and redis for integration tests
Try asking
- Which test runner should I use for this package?
- Write an integration test that boots a PDS with TestNetwork
- Set up tsconfig.test.json for a package with no tests yet
Good to know
- Jest is deprecated and should not be used in new code.
- Several packages still use Jest and have not been migrated.
- Integration tests need postgres and redis running through pnpm test.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/testing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
references/jest.md4 KB -
references/vitest.md11 KB
Alternatives to testing
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
testing: common questions
Should new tests use Jest or Vitest?
The source says Vitest is the standard and that Jest is deprecated, so new tests should not introduce Jest. Existing Jest files should be migrated to Vitest where possible.
Where do integration tests go in this repo?
Integration and end-to-end tests go in the package's top-level ./tests folder. Unit tests sit next to the file they test.
Why are snapshot assertions wrapped in forSnapshot()?
The source says forSnapshot() swaps DIDs, CIDs and timestamps for stable placeholders so snapshots do not change on every run.
How do I install testing?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is testing free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is testing safe to use?
It scores 81 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to testing?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
