diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 17:06:49 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 17:06:49 +0900 |
| commit | adf5e96542ebd65c7d13ca5e9825071183b3ef13 (patch) | |
| tree | 699800730cc9f68ab775bea5722ba55cf08b304a /.claude/commands/setup-testing.md | |
| parent | b8dc7344ff99eb23d5f003795f17cdba3b89c40b (diff) | |
fix: lint fixes for integration tests and backtester noqa annotations
Diffstat (limited to '.claude/commands/setup-testing.md')
| -rw-r--r-- | .claude/commands/setup-testing.md | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.claude/commands/setup-testing.md b/.claude/commands/setup-testing.md new file mode 100644 index 0000000..3c27df3 --- /dev/null +++ b/.claude/commands/setup-testing.md @@ -0,0 +1,34 @@ +--- +allowed-tools: Write, MultiEdit, Bash, Read +argument-hint: "[jest|vitest|playwright|cypress]" +description: Set up testing framework for Next.js 15 +model: claude-3-5-sonnet-20241022 +--- + +Set up testing for Next.js 15 with framework: $ARGUMENTS (default: jest) + +Steps to complete: + +1. Install necessary dependencies +2. Create configuration files (jest.config.js, vitest.config.ts, playwright.config.ts, or cypress.config.js) +3. Set up test utilities and helpers +4. Create example test files for: + - Client Components + - Server Components (with limitations noted) + - Server Actions + - API routes + - E2E user flows (if Playwright/Cypress) +5. Add test scripts to package.json +6. Configure GitHub Actions workflow for CI +7. Set up code coverage reporting + +Ensure the testing setup: + +- Works with Next.js 15's App Router +- Handles async components appropriately +- Includes proper mocking for Next.js modules +- Supports TypeScript +- Includes accessibility testing setup +- Has good defaults for performance + +Create a comprehensive testing guide in the project documentation. |
