alicli documentation

Testing bar

Testing bar

Run behavior tests, type checking and the mutation suite separately.

These are contributor commands for an authorized checkout with dependencies already installed, not an installation route for the private alpha.

npm test
npm run typecheck
npm run build
npm run mutate

What each check catches

The tests exercise CLI wiring, store behavior and scripted device boundaries. The test runner executes TypeScript without type-checking it, so a green test suite does not replace typecheck. The build compiles the source entry points into dist.

Mutation fixtures inject specific regressions and require named tests to fail. A test that merely asserts a refusal can miss a misleading cause or remedy; review the actual output assertions as well. Native SQLite dependencies must match the Node version used for tests and the binary.

Deployment is another step

Review and merge changes before installing scheduled scripts or rebuilding a live checkout. A passing source test does not prove that an existing scheduled process is using the new dist build. Device tests require their own authorization and bounded evidence; never send real supplier messages as a routine test fixture.

spec · json · install