원클릭으로
testing
How to write and run tests in @jsenv/core. Use when adding, running, or understanding tests in any package of this monorepo.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
How to write and run tests in @jsenv/core. Use when adding, running, or understanding tests in any package of this monorepo.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
How to run and verify the `*_demo.html` files scattered across packages (e.g. packages/frontend/navi/src/control/demos/). Use when the user explicitly asks to load a demo in a browser / Playwright to check it works — not proactively (see .agents/instructions.md's "never verify on your own initiative" constraint).
Workflow for creating a new UI component in @jsenv/navi. Use when implementing a new frontend component from scratch.
| name | testing |
| description | How to write and run tests in @jsenv/core. Use when adding, running, or understanding tests in any package of this monorepo. |
Testing in @jsenv/core focuses on behavior verification and regression prevention rather than exhaustive coverage. Tests capture actual behavior to ensure changes don't break existing functionality.
Run tests from the repo root to ensure the correct Node.js version (25.8.1):
node --conditions=dev:jsenv <test-file>
The dev:jsenv export condition uses source files directly — no build step needed. For packages like @jsenv/server, this avoids rebuilding dist/ after every source change.
_test-name.test.js/ directories alongside test filesDEBUG=true output appears in snapshot markdown files, not the terminaltests/ directoriesWrite tests that catch regressions and document expected behavior, not to achieve high coverage metrics.