Loading...
Loading...
Add Vitest testing infrastructure and GitHub Actions CI/CD to any TypeScript project. Supports Next.js, NestJS, and React projects with 80% coverage thresholds. Use this skill when setting up tests for a new project or adding CI/CD pipelines.
npx skill4agent add shipshitdev/library testing-cicd-initpackage.jsonAdd testing and CI/CD to this projectSet up Vitest with 80% coverage and GitHub Actions for this Next.js projectbun add -D vitest @vitest/coverage-v8 @vitejs/plugin-react @testing-library/react @testing-library/jest-dom jsdomvitest.config.tssrc/test/setup.ts.github/workflows/ci.yml**/*.{test,spec}.{ts,tsx}bun add -D vitest @vitest/coverage-v8 supertest @types/supertestvitest.config.tstest/setup.ts.github/workflows/ci.ymlsrc/**/*.spec.tstemplates/| Template | Purpose |
|---|---|
| Vitest config for Next.js |
| Vitest config for NestJS |
| GitHub Actions for Next.js |
| GitHub Actions for NestJS |
| Test setup with RTL |
| Test setup for Node.js |
vitest.workspace.tsvitest.config.tsbun --filter '*' test| Skill | Integration |
|---|---|
| Adds pre-commit coverage enforcement |
| Works alongside for code quality |
| Adds E2E testing after unit tests |
| Provides testing patterns guidance |
User: Add testing to this project
Claude:
1. Detects Next.js from package.json
2. Installs vitest, @vitest/coverage-v8, @testing-library/react
3. Creates vitest.config.ts with jsdom environment
4. Creates src/test/setup.ts
5. Creates .github/workflows/ci.yml
6. Adds test scripts to package.jsonUser: Set up tests for this NestJS API
Claude:
1. Detects NestJS from @nestjs/core dependency
2. Installs vitest, @vitest/coverage-v8, supertest
3. Creates vitest.config.ts with node environment
4. Creates test/setup.ts
5. Creates .github/workflows/ci.yml with MongoDB service
6. Adds test scripts to package.jsonvitest.config.tstsconfig.jsonresolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},bun test --coveragebunx tsc --noEmit