564 B
564 B
paths
| paths | ||
|---|---|---|
|
Test Conventions
*.spec.ts— runtime tests. Use Arrange/Act/Assert withdescribe/itblocks.*.type-spec.ts— compile-time type tests. UseexpectTypeOf(x).toEqualTypeOf<T>()from expect-type.- Tests live in
spec/directories next to the module, one file per operation (e.g.,map.spec.ts). - When adding a new method, create both a
*.spec.tsand*.type-spec.tsfor it. - Run runtime tests:
pnpm test -- src/{module}/spec/{file}.spec.ts - Run type tests:
pnpm test:types