ワンクリックで
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 (26.5.0):
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.