noflake write
Scan your codebase, database schema, routes, and auth patterns. Generate a full Playwright E2E test suite powered by AI.
๐ง Coming in v1.0
Usage
npx noflake write [options]Options
| Flag | Description | Default |
|---|---|---|
-c, --config <path> | Path to noflake config file | .noflakerc.json |
--dry-run | Preview the test plan without generating files | false |
--max-retries <n> | Max self-heal retries per test | 3 |
How it works
- Scan โ Detects your framework (Next.js, React, Vue, Svelte, Express), reads your database schema (Prisma, Drizzle, raw SQL), identifies auth patterns (NextAuth, Clerk, Supabase Auth, Lucia, Firebase), and maps all routes
- Plan โ Sends a condensed context to Claude and generates a test plan covering user flows, auth routes, CRUD operations, and edge cases
- Generate โ Creates Playwright test files in your
testDir - Verify โ Runs every generated test. If a test fails because the test itself is wrong, NoFlake sends the error back to Claude and retries (self-healing loop, up to
maxRetriesattempts) - Save state โ Writes the test manifest, coverage map, and run history to
.noflake/
Example (preview)
$ npx noflake write
๐ฅ NoFlake โ Write Tests
๐ Scanning codebase...
โ
Detected next project with 14 routes
๐ Schema: prisma with 8 tables
๐ Auth: next-auth
๐งช Generating tests...
โ
user-signup-flow
โ
user-login-flow
โ
dashboard-crud-operations
โ
settings-profile-update
โ
api-auth-guard
โ billing-checkout โ self-healing (attempt 1/3)
โ
billing-checkout โ healed โ
6 passed, 0 failed, 6 total
State saved to .noflake/Requires: An
ANTHROPIC_API_KEY environment variable with a valid Anthropic API key.