Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Aquaticat/Monochromatic. TypeScript and Rust monorepo: Claude Code and Pi coding-agent plugins, a m
Something went wrong. Try again.
@monochromatic-dev/module-test-expect #
Runtime assertions and type assertions extracted from the test harness. The runner in module-test still re-exports the existing interface.
Responsibilities #
- Jest-style
expectmatchers, including negation, asynchronous matchers, asymmetric matchers, and Sinon-spy assertions. createScopedExpect, which supplies a fresh assertion tracker for the runner to validate.expectTypeOf, re-exported fromexpect-type.
Chai and Sinon remain implementation dependencies. Importing this package does not execute a test or install the runner's rejection observer.
Use #
// consumer.ts
import { expect, expectTypeOf, } from '@monochromatic-dev/module-test-expect/ts';
expect([1, 1,],).toAllBe();
expectTypeOf<string>().toEqualTypeOf<string>();
Workspace consumers use /ts.
The root package entry resolves to the built neutral artifact.
For matcher semantics,
see the harness assertion reference.
Verification #
# From the repository root.
mise run //package/module/test-expect:buildAndTest
mise run //package/module/test-expect:lint
Unit tests exercise this package's built artifact.
Runner integration retains assertion-count verdict checks in module-test.