@dysonic/dy-cli-cmd-test
v1.0.6
Published
Built-in test command for running Jest tests through dy-cli project scopes
Readme
@dysonic/dy-cli-cmd-test
Architecture
flowchart LR
user["User"] --> command["TestCommand"]
command --> task["RunTestTask"]
task --> resolver["project resolver"]
task --> jest["Jest execution"]
task --> workspace["workspace fan-out"]@dysonic/dy-cli-cmd-test implements the dy-cli test command.
It runs Jest tests for project packages.
For the Chinese version, see README_ZH.md.
Role
This package is currently focused on the Jest workflow and serves:
- monorepo child packages
- single-package npm libraries
It has already moved test execution behavior out of project-local scripts and into the command package itself.
Main Contents
src/commands/test.tstest command entrysrc/tasks/run-test-task.tsJest execution task
Command Semantics
dy-cli test
dy-cli test --coverage
dy-cli test --watch
dy-cli test --update-snapshotSupported Capabilities
- searches upward for the nearest
dy.config.ts - resolves the Jest config automatically
- runs tests for all child packages by default at a monorepo root
- runs tests for the current package in single projects or monorepo child packages
- supports coverage, watch mode, and snapshot update mode
Design Notes
This package does not try to abstract multiple test frameworks yet. It focuses on making the Jest path solid first.
