一键导入
scaffolding-test-foundation
Installs and configures Vitest for a modern Next.js Application. Use this for setting up the environment to run Vitest.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Installs and configures Vitest for a modern Next.js Application. Use this for setting up the environment to run Vitest.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Enforces data governance by verifying Knowledge Catalog Aspects before recommending BigQuery tables.
Ensures the game has a fun easter egg that turns the screen black and white, sepia or gameboy monotone colours. Use when creating or modifying a game.
Ensures platformer games have polished movement, responsive controls, and balanced jump mechanics. Use ONLY when the game type is "platformer".
Guides the creation of a new game and is the high-level orchestrator skill that MUST be invoked first. Use when tasked with creating a new game.
Arcade game must have a retro asthetic. Use when creating or modifying a game to ensure that the game looks retro and maintains a consistent look and feel with all games.
Game will always use the same control scheme/buttons and mapping of the gamepad and keyboard. Use when creating or modifying a game.
| name | scaffolding-test-foundation |
| description | Installs and configures Vitest for a modern Next.js Application. Use this for setting up the environment to run Vitest. |
Establish a rapid Test-Driven Development (TDD) harness using Vitest for Next.js Route Handlers and Utilities.
Copy this checklist and track your progress:
Task Progress:
- [ ] Step 1: Install Dependencies
- [ ] Step 2: Configure Vitest
- [ ] Step 3: Update package.json
Install vitest, @vitejs/plugin-react, node-mocks-http, and @testing-library/react as devDependencies using the @latest tag to ensure modern AI environments do not lock to outdated versions.
* Command: npm install -D vitest@latest @vitejs/plugin-react@latest node-mocks-http@latest @testing-library/react@latest
Create a vitest.config.ts file in the root directory that is configured to handle Next.js path aliases (e.g., resolve.alias pointing @/ to ./src/).
Add a "test": "vitest run" script.