@overkill-dev/type-test 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/package.json +57 -6
- package/packages/type-test/assertion-reference.d.ts +15 -0
- package/packages/type-test/assertion-reference.d.ts.map +1 -0
- package/packages/type-test/assertion-reference.js +43 -0
- package/packages/type-test/assertion-reference.js.map +1 -0
- package/packages/type-test/check.entry-point.d.ts +13 -0
- package/packages/type-test/check.entry-point.d.ts.map +1 -0
- package/packages/type-test/check.entry-point.js +82 -0
- package/packages/type-test/check.entry-point.js.map +1 -0
- package/packages/type-test/checker-boundary-validation.js +21 -0
- package/packages/type-test/checker-boundary-validation.js.map +1 -0
- package/packages/type-test/checker-diagnostics.js +49 -0
- package/packages/type-test/checker-diagnostics.js.map +1 -0
- package/packages/type-test/checker-evidence.js +42 -0
- package/packages/type-test/checker-evidence.js.map +1 -0
- package/packages/type-test/checker-project.js +59 -0
- package/packages/type-test/checker-project.js.map +1 -0
- package/packages/type-test/checker-resolution.js +44 -0
- package/packages/type-test/checker-resolution.js.map +1 -0
- package/packages/type-test/checker.entry-point.js +73 -0
- package/packages/type-test/checker.entry-point.js.map +1 -0
- package/packages/type-test/compiler-plan.js +240 -0
- package/packages/type-test/compiler-plan.js.map +1 -0
- package/packages/type-test/decorator-translation.js +58 -0
- package/packages/type-test/decorator-translation.js.map +1 -0
- package/packages/type-test/family-backend.entry-point.js +75 -0
- package/packages/type-test/family-backend.entry-point.js.map +1 -0
- package/packages/type-test/frozen-inputs.js +132 -0
- package/packages/type-test/frozen-inputs.js.map +1 -0
- package/packages/type-test/frozen-project.js +62 -0
- package/packages/type-test/frozen-project.js.map +1 -0
- package/packages/type-test/generated-file-ownership.js +59 -0
- package/packages/type-test/generated-file-ownership.js.map +1 -0
- package/packages/type-test/generated-imports.js +118 -0
- package/packages/type-test/generated-imports.js.map +1 -0
- package/packages/type-test/generated-input.entry-point.js +59 -0
- package/packages/type-test/generated-input.entry-point.js.map +1 -0
- package/packages/type-test/generated-module-plan.js +93 -0
- package/packages/type-test/generated-module-plan.js.map +1 -0
- package/packages/type-test/generated-source.js +124 -0
- package/packages/type-test/generated-source.js.map +1 -0
- package/packages/type-test/native-execution.js +84 -0
- package/packages/type-test/native-execution.js.map +1 -0
- package/packages/type-test/native-reference-expression.js +75 -0
- package/packages/type-test/native-reference-expression.js.map +1 -0
- package/packages/type-test/native-reference.js +103 -0
- package/packages/type-test/native-reference.js.map +1 -0
- package/packages/type-test/native-results.js +183 -0
- package/packages/type-test/native-results.js.map +1 -0
- package/packages/type-test/native-translation.js +205 -0
- package/packages/type-test/native-translation.js.map +1 -0
- package/packages/type-test/profile-settings.d.ts +26 -0
- package/packages/type-test/profile-settings.d.ts.map +1 -0
- package/packages/type-test/profile-settings.js +25 -0
- package/packages/type-test/profile-settings.js.map +1 -0
- package/packages/type-test/profile.entry-point.d.ts +30 -0
- package/packages/type-test/profile.entry-point.d.ts.map +1 -0
- package/packages/type-test/profile.entry-point.js +19 -0
- package/packages/type-test/profile.entry-point.js.map +1 -0
- package/packages/type-test/scope-assertions.js +127 -0
- package/packages/type-test/scope-assertions.js.map +1 -0
- package/packages/type-test/source-analysis.js +72 -0
- package/packages/type-test/source-analysis.js.map +1 -0
- package/packages/type-test/source-options.js +108 -0
- package/packages/type-test/source-options.js.map +1 -0
- package/packages/type-test/source-ownership.js +216 -0
- package/packages/type-test/source-ownership.js.map +1 -0
- package/packages/type-test/type-test.entry-point.d.ts +64 -0
- package/packages/type-test/type-test.entry-point.d.ts.map +1 -0
- package/packages/type-test/type-test.entry-point.js +31 -0
- package/packages/type-test/type-test.entry-point.js.map +1 -0
- package/readme.md +215 -5
- package/software-bill-of-materials.cyclonedx.json +135 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-ownership.js","sourceRoot":"","sources":["../../../../../source/packages/type-test/source-ownership.ts"],"names":[],"mappings":"AACA,OAAO,EA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AC,iBAAiB,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,SAAS,KAAK,IAAI,EAAE,CAAC;QAC1D,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,OAAO,qBAAqB,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;AACzG,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,QAAwB,EAAE,QAAwB;IAChF,MAAM,MAAM,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IACzC,OAAO,YAAY,CAAC,QAAQ,EAAE,cAAc,CAAC,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AACnG,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,QAAwB,EAAE,IAAgB;IACzE,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACrC,IAAI,SAAS,KAAK,SAAS,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7E,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;IAC3E,CAAC;IACD,OAAO,SAAS,CAAC,IAAI,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type TypeAssertionReference } from './assertion-reference.ts';
|
|
2
|
+
export type { TypeAssertionReference } from './assertion-reference.ts';
|
|
3
|
+
export type { _ } from 'tstyche';
|
|
4
|
+
export declare const sameType: {
|
|
5
|
+
<Actual, Expected>(): TypeAssertionReference<readonly [], readonly [Actual, Expected]>;
|
|
6
|
+
readonly withActual: <Expected>() => TypeAssertionReference<readonly [actual: unknown], readonly [Expected]>;
|
|
7
|
+
readonly withExpected: <Actual>() => TypeAssertionReference<readonly [expected: unknown], readonly [Actual]>;
|
|
8
|
+
readonly expressions: TypeAssertionReference<readonly [actual: unknown, expected: unknown], readonly []>;
|
|
9
|
+
} & {
|
|
10
|
+
readonly not: {
|
|
11
|
+
<Actual, Expected>(): TypeAssertionReference<readonly [], readonly [Actual, Expected]>;
|
|
12
|
+
readonly withActual: <Expected>() => TypeAssertionReference<readonly [actual: unknown], readonly [Expected]>;
|
|
13
|
+
readonly withExpected: <Actual>() => TypeAssertionReference<readonly [expected: unknown], readonly [Actual]>;
|
|
14
|
+
readonly expressions: TypeAssertionReference<readonly [actual: unknown, expected: unknown], readonly []>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const assignableTo: {
|
|
18
|
+
<Actual, Expected>(): TypeAssertionReference<readonly [], readonly [Actual, Expected]>;
|
|
19
|
+
readonly withActual: <Expected>() => TypeAssertionReference<readonly [actual: unknown], readonly [Expected]>;
|
|
20
|
+
readonly withExpected: <Actual>() => TypeAssertionReference<readonly [expected: unknown], readonly [Actual]>;
|
|
21
|
+
readonly expressions: TypeAssertionReference<readonly [actual: unknown, expected: unknown], readonly []>;
|
|
22
|
+
} & {
|
|
23
|
+
readonly not: {
|
|
24
|
+
<Actual, Expected>(): TypeAssertionReference<readonly [], readonly [Actual, Expected]>;
|
|
25
|
+
readonly withActual: <Expected>() => TypeAssertionReference<readonly [actual: unknown], readonly [Expected]>;
|
|
26
|
+
readonly withExpected: <Actual>() => TypeAssertionReference<readonly [expected: unknown], readonly [Actual]>;
|
|
27
|
+
readonly expressions: TypeAssertionReference<readonly [actual: unknown, expected: unknown], readonly []>;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const assignableFrom: {
|
|
31
|
+
<Actual, Expected>(): TypeAssertionReference<readonly [], readonly [Actual, Expected]>;
|
|
32
|
+
readonly withActual: <Expected>() => TypeAssertionReference<readonly [actual: unknown], readonly [Expected]>;
|
|
33
|
+
readonly withExpected: <Actual>() => TypeAssertionReference<readonly [expected: unknown], readonly [Actual]>;
|
|
34
|
+
readonly expressions: TypeAssertionReference<readonly [actual: unknown, expected: unknown], readonly []>;
|
|
35
|
+
} & {
|
|
36
|
+
readonly not: {
|
|
37
|
+
<Actual, Expected>(): TypeAssertionReference<readonly [], readonly [Actual, Expected]>;
|
|
38
|
+
readonly withActual: <Expected>() => TypeAssertionReference<readonly [actual: unknown], readonly [Expected]>;
|
|
39
|
+
readonly withExpected: <Actual>() => TypeAssertionReference<readonly [expected: unknown], readonly [Actual]>;
|
|
40
|
+
readonly expressions: TypeAssertionReference<readonly [actual: unknown, expected: unknown], readonly []>;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export declare const acceptsProps: import("./assertion-reference.ts").TypeAbility<readonly [props: Record<string, unknown>]>;
|
|
44
|
+
export declare const callableWith: import("./assertion-reference.ts").TypeAbility<readonly unknown[]>;
|
|
45
|
+
export declare const constructableWith: import("./assertion-reference.ts").TypeAbility<readonly unknown[]>;
|
|
46
|
+
export declare const hasProperty: import("./assertion-reference.ts").TypeAbility<readonly [key: PropertyKey]>;
|
|
47
|
+
export declare const raisesTypeError: import("./assertion-reference.ts").TypeAbility<readonly (string | number | RegExp)[]>;
|
|
48
|
+
type InstantiationBindings = {
|
|
49
|
+
<Actual, Arguments extends readonly unknown[]>(): TypeAssertionReference<readonly [], readonly [Actual, Arguments]>;
|
|
50
|
+
readonly withActual: <Arguments extends readonly unknown[]>() => TypeAssertionReference<readonly [actual: unknown], readonly [Arguments]>;
|
|
51
|
+
};
|
|
52
|
+
export declare const instantiableWith: InstantiationBindings & {
|
|
53
|
+
not: InstantiationBindings;
|
|
54
|
+
};
|
|
55
|
+
type DecoratorDeclaration<Decorator> = (apply: Decorator) => void;
|
|
56
|
+
type ApplicabilityBindings = {
|
|
57
|
+
<Decorator>(): TypeAssertionReference<readonly [declaration: DecoratorDeclaration<Decorator>], readonly [Decorator]>;
|
|
58
|
+
readonly withActual: <Decorator>(actual: Decorator) => TypeAssertionReference<readonly [declaration: DecoratorDeclaration<Decorator>], readonly [Decorator]>;
|
|
59
|
+
};
|
|
60
|
+
export declare const applicableTo: ApplicabilityBindings & {
|
|
61
|
+
not: ApplicabilityBindings;
|
|
62
|
+
};
|
|
63
|
+
export { family } from './profile.entry-point.ts';
|
|
64
|
+
//# sourceMappingURL=type-test.entry-point.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-test.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/type-test/type-test.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,sBAAsB,EAC9B,MAAM,0BAA0B,CAAC;AAElC,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,YAAY,EAAE,CAAC,EAAE,MAAM,SAAS,CAAC;AAEjC,eAAO,MAAM,QAAQ;;;;;;;;;;;;CAAuB,CAAC;AAC7C,eAAO,MAAM,YAAY;;;;;;;;;;;;CAAmC,CAAC;AAC7D,eAAO,MAAM,cAAc;;;;;;;;;;;;CAAqC,CAAC;AACjE,eAAO,MAAM,YAAY,2FAA0E,CAAC;AAEpG,eAAO,MAAM,YAAY,oEAAsD,CAAC;AAChF,eAAO,MAAM,iBAAiB,oEAA2D,CAAC;AAC1F,eAAO,MAAM,WAAW,6EAA6D,CAAC;AACtF,eAAO,MAAM,eAAe,uFAAqE,CAAC;AAElG,KAAK,qBAAqB,GAAG;IACzB,CAAC,MAAM,EAAE,SAAS,SAAS,SAAS,OAAO,EAAE,KAAK,sBAAsB,CAAC,SAAS,EAAE,EAAE,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;IACpH,QAAQ,CAAC,UAAU,EAAE,CAAC,SAAS,SAAS,SAAS,OAAO,EAAE,OAAO,sBAAsB,CACnF,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1B,SAAS,CAAC,SAAS,CAAC,CACvB,CAAC;CACL,CAAC;AAeF,eAAO,MAAM,gBAAgB;;CAAoF,CAAC;AAElH,KAAK,oBAAoB,CAAC,SAAS,IAAI,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;AAClE,KAAK,qBAAqB,GAAG;IACzB,CAAC,SAAS,KAAK,sBAAsB,CACjC,SAAS,CAAC,WAAW,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC,EACvD,SAAS,CAAC,SAAS,CAAC,CACvB,CAAC;IACF,QAAQ,CAAC,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,KAAK,sBAAsB,CACzE,SAAS,CAAC,WAAW,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC,EACvD,SAAS,CAAC,SAAS,CAAC,CACvB,CAAC;CACL,CAAC;AAoBF,eAAO,MAAM,YAAY;;CAAoF,CAAC;AAE9G,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { typeAbility, typeAssertionReference, typeRelation } from "./assertion-reference.js";
|
|
2
|
+
export const sameType = typeRelation('toBe');
|
|
3
|
+
export const assignableTo = typeRelation('toBeAssignableTo');
|
|
4
|
+
export const assignableFrom = typeRelation('toBeAssignableFrom');
|
|
5
|
+
export const acceptsProps = typeAbility('toAcceptProps');
|
|
6
|
+
export const callableWith = typeAbility('toBeCallableWith');
|
|
7
|
+
export const constructableWith = typeAbility('toBeConstructableWith');
|
|
8
|
+
export const hasProperty = typeAbility('toHaveProperty');
|
|
9
|
+
export const raisesTypeError = typeAbility('toRaiseError');
|
|
10
|
+
function instantiationBindings(negated) {
|
|
11
|
+
return Object.assign(function instantiation() {
|
|
12
|
+
return typeAssertionReference('toBeInstantiableWith', negated);
|
|
13
|
+
}, {
|
|
14
|
+
withActual() {
|
|
15
|
+
return typeAssertionReference('toBeInstantiableWith', negated);
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export const instantiableWith = Object.assign(instantiationBindings(false), { not: instantiationBindings(true) });
|
|
20
|
+
function applicabilityBindings(negated) {
|
|
21
|
+
return Object.assign(function applicability() {
|
|
22
|
+
return typeAssertionReference('toBeApplicable', negated);
|
|
23
|
+
}, {
|
|
24
|
+
withActual() {
|
|
25
|
+
return typeAssertionReference('toBeApplicable', negated);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
export const applicableTo = Object.assign(applicabilityBindings(false), { not: applicabilityBindings(true) });
|
|
30
|
+
export { family } from "./profile.entry-point.js";
|
|
31
|
+
//# sourceMappingURL=type-test.entry-point.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-test.entry-point.js","sourceRoot":"","sources":["../../../../../source/packages/type-test/type-test.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,sBAAsB,EACtB,YAAY,EAEf,MAAM,0BAA0B,CAAC;AAKlC,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AAC7C,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC,kBAAkB,CAAC,CAAC;AAC7D,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;AACjE,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAA4C,eAAe,CAAC,CAAC;AAEpG,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAqB,kBAAkB,CAAC,CAAC;AAChF,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAqB,uBAAuB,CAAC,CAAC;AAC1F,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CAA8B,gBAAgB,CAAC,CAAC;AACtF,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAwC,cAAc,CAAC,CAAC;AAUlG,SAAS,qBAAqB,CAAC,OAAgB;IAC3C,OAAO,MAAM,CAAC,MAAM,CAAC,SAAS,aAAa;QACvC,OAAO,sBAAsB,CAA4C,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC9G,CAAC,EAAE;QACC,UAAU;YACN,OAAO,sBAAsB,CACzB,sBAAsB,EACtB,OAAO,CACV,CAAC;QACN,CAAC;KACJ,CAAC,CAAC;AACP,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,EAAE,qBAAqB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAclH,SAAS,qBAAqB,CAAC,OAAgB;IAC3C,OAAO,MAAM,CAAC,MAAM,CAAC,SAAS,aAAa;QACvC,OAAO,sBAAsB,CACzB,gBAAgB,EAChB,OAAO,CACV,CAAC;IACN,CAAC,EAAE;QACC,UAAU;YACN,OAAO,sBAAsB,CAIzB,gBAAgB,EAChB,OAAO,CACV,CAAC;QACN,CAAC;KACJ,CAAC,CAAC;AACP,CAAC;AACD,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,EAAE,qBAAqB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAE9G,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC"}
|
package/readme.md
CHANGED
|
@@ -1,7 +1,217 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@overkill-dev/type-test`
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
deprecated.
|
|
3
|
+
Optional native type assertions checked by TSTyche. Install alongside
|
|
4
|
+
`@overkill-dev/test`, or use engine roots directly:
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
```sh
|
|
7
|
+
npm install -D @overkill-dev/type-test
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Profiles
|
|
11
|
+
|
|
12
|
+
```ts
|
|
13
|
+
import { fileURLToPath } from 'node:url';
|
|
14
|
+
import { defineConfig } from '@overkill-dev/test/config';
|
|
15
|
+
import { family as typeTests } from '@overkill-dev/type-test';
|
|
16
|
+
|
|
17
|
+
export const config = defineConfig({
|
|
18
|
+
profiles: {
|
|
19
|
+
types: {
|
|
20
|
+
testFamily: typeTests,
|
|
21
|
+
files: { include: [ 'source/**/*.types.ts' ] },
|
|
22
|
+
settings: {
|
|
23
|
+
projectConfigPath: fileURLToPath(new URL('./tsconfig.json', import.meta.url)),
|
|
24
|
+
compiler: { kind: 'local' }
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Run `overkill run --profile types` or `overkill list --profile types`.
|
|
32
|
+
Family selection is explicit. A bare `testFamily: 'type-test'` is rejected.
|
|
33
|
+
`defineConfig` infers settings independently for each imported family. Imports do
|
|
34
|
+
not register commands or change configuration.
|
|
35
|
+
The standard distribution does not bundle or re-export this package.
|
|
36
|
+
The existing `typeTestProfile(...)` helper on the `/profile` subpath returns the
|
|
37
|
+
same imported-family profile. The `typeTestAdapter` export and runner adapter
|
|
38
|
+
hooks have been removed.
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
import { test } from '@overkill-dev/test';
|
|
42
|
+
import { sameType, callableWith } from '@overkill-dev/type-test';
|
|
43
|
+
|
|
44
|
+
export const testNode = test('preserves inference', (scope) => {
|
|
45
|
+
const result = 'hello' as const;
|
|
46
|
+
scope.assert(sameType<typeof result, 'hello'>());
|
|
47
|
+
scope.assert(callableWith<typeof String>(), 42);
|
|
48
|
+
return scope.assert.collect();
|
|
49
|
+
});
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Case bodies are compiler inputs. Checking never executes their side effects
|
|
53
|
+
or invokes runtime assertions. Authored runtime/resource attachments are rejected
|
|
54
|
+
before backend preparation. Coverage and ordinary
|
|
55
|
+
execution controls are unsupported. Ordinary runtime use of these references
|
|
56
|
+
fails clearly; they cannot establish runtime narrowing through `scope.require`.
|
|
57
|
+
|
|
58
|
+
## Assertion references
|
|
59
|
+
|
|
60
|
+
| Export | Check |
|
|
61
|
+
| --------------------------------------- | ----------------------------------- |
|
|
62
|
+
| `sameType<Actual, Expected>()` | Type equality |
|
|
63
|
+
| `assignableTo<Actual, Expected>()` | Actual assignable to expected |
|
|
64
|
+
| `assignableFrom<Actual, Expected>()` | Actual assignable from expected |
|
|
65
|
+
| `acceptsProps<Actual>()` | JSX component props |
|
|
66
|
+
| `applicableTo<Actual>()` | Decorator applicability |
|
|
67
|
+
| `callableWith<Actual>()` | Function arguments |
|
|
68
|
+
| `constructableWith<Actual>()` | Constructor arguments |
|
|
69
|
+
| `instantiableWith<Actual, Arguments>()` | Generic instantiation with a tuple |
|
|
70
|
+
| `hasProperty<Actual>()` | Property presence |
|
|
71
|
+
| `raisesTypeError<Actual>()` | Pinned TSTyche legacy error matcher |
|
|
72
|
+
|
|
73
|
+
Every factory has a `.not` counterpart. Relation factories additionally offer
|
|
74
|
+
`.withActual<Expected>()`, `.withExpected<Actual>()`, and `.expressions`.
|
|
75
|
+
Expression operands pass through `scope.assert(reference, ...operands)`.
|
|
76
|
+
Ability factories expose `.withActual` for an expression subject followed by
|
|
77
|
+
matcher operands. `instantiableWith.withActual<Arguments>()` takes the type
|
|
78
|
+
argument tuple and accepts its subject through `scope.assert`.
|
|
79
|
+
The fill-in type `_` is a type-only export.
|
|
80
|
+
|
|
81
|
+
Decorator applicability takes a declaration callback. TSTyche checks every
|
|
82
|
+
`@apply` site as part of that assertion boundary:
|
|
83
|
+
|
|
84
|
+
```ts
|
|
85
|
+
scope.assert(applicableTo<typeof decorate>(), (apply) => {
|
|
86
|
+
@apply
|
|
87
|
+
class Subject {}
|
|
88
|
+
});
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
`applicableTo.withActual(decorate)` supplies an expression subject. JSX type
|
|
92
|
+
subjects preserve type-only imports and explicit instantiations, such as
|
|
93
|
+
`acceptsProps<typeof Component<string>>()`. Expression subjects must use a
|
|
94
|
+
component identifier.
|
|
95
|
+
Use `.tsx` source files and a project JSX compiler option for JSX checks.
|
|
96
|
+
When Node cannot load the authored syntax, precompile with your project tooling
|
|
97
|
+
and source maps, then run with `--enable-source-maps`. The adapter reads the
|
|
98
|
+
original TypeScript project and never installs require hooks or ESM loaders.
|
|
99
|
+
|
|
100
|
+
Annotation messages must have a statically known string type.
|
|
101
|
+
|
|
102
|
+
References must resolve to package exports, including import aliases. Dynamic
|
|
103
|
+
reference selection, arbitrary forwarding, and unsupported source forms produce
|
|
104
|
+
errors. Native bindings cannot be mixed with runtime assertions in one case.
|
|
105
|
+
A selected body without native assertions fails; intentional skipped cases stay
|
|
106
|
+
skipped. Missing checker evidence is inconclusive and fails the run.
|
|
107
|
+
|
|
108
|
+
## Direct engine roots
|
|
109
|
+
|
|
110
|
+
```ts
|
|
111
|
+
import { family as typeTests } from '@overkill-dev/type-test';
|
|
112
|
+
|
|
113
|
+
const { signal } = new AbortController();
|
|
114
|
+
await using prepared = await engine.prepareFamily({
|
|
115
|
+
testPlan: engine.createTestPlan(root),
|
|
116
|
+
testFamily: typeTests,
|
|
117
|
+
settings: { projectConfigPath, compiler: { kind: 'local' } },
|
|
118
|
+
projectRoot: process.cwd(),
|
|
119
|
+
signal
|
|
120
|
+
});
|
|
121
|
+
const collected = await prepared.collect({
|
|
122
|
+
workIds: prepared.testPlan.cases.map((testCase) => testCase.workId),
|
|
123
|
+
signal
|
|
124
|
+
});
|
|
125
|
+
const result = await engine.execute(collected, {
|
|
126
|
+
signal,
|
|
127
|
+
debug: { mode: 'off' },
|
|
128
|
+
execution: { mode: 'serial-in-process' },
|
|
129
|
+
retryPolicy: null,
|
|
130
|
+
reporters: [],
|
|
131
|
+
runFacts: {},
|
|
132
|
+
startedAt: new Date().toISOString()
|
|
133
|
+
});
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Use the same engine that constructed the root. Relative settings paths resolve
|
|
137
|
+
against the explicit absolute `projectRoot`. Preparations and collections are
|
|
138
|
+
single-use; obtain a fresh preparation for another invocation. Backend disposal
|
|
139
|
+
finishes before final reporter delivery. The `/check` convenience API retains
|
|
140
|
+
runner selection options and delegates to this same engine lifecycle.
|
|
141
|
+
|
|
142
|
+
Use an in-process profile for this family; compiler deadlines and placement in
|
|
143
|
+
other execution hosts remain separate integration work.
|
|
144
|
+
|
|
145
|
+
Roots may be constructed before
|
|
146
|
+
importing the family. The engine and first-party composition APIs preserve
|
|
147
|
+
callback provenance without import hooks or source transforms during loading.
|
|
148
|
+
Callback lookup supports direct functions and immutable aliases, including
|
|
149
|
+
parentheses, type assertions, and `satisfies`. Named options require an
|
|
150
|
+
unambiguous callback: potentially overriding spreads, mutation, and escaping
|
|
151
|
+
containers are rejected. Low-level table case arrays cannot contain spreads.
|
|
152
|
+
Unknown source locations and ambiguous callback origins produce diagnostics.
|
|
153
|
+
Copied assertion operands and type arguments retain precise original-source
|
|
154
|
+
locations through translation and import repair.
|
|
155
|
+
|
|
156
|
+
Compiler selection is explicit: `local` uses the compiler resolved by TSTyche;
|
|
157
|
+
`version` requires an exact version. Compiler identity belongs to executable
|
|
158
|
+
work identity. Generic bodies retain their original constraints and contextual
|
|
159
|
+
types. Table rows and reused macro bodies share static evidence; runtime values
|
|
160
|
+
do not specialize checking. Selection excludes unselected assertion sites, while
|
|
161
|
+
normal TypeScript dependency diagnostics can still fail compilation.
|
|
162
|
+
|
|
163
|
+
## Generated inputs and lifecycle
|
|
164
|
+
|
|
165
|
+
Checking uses owned `.overkill-type-test-*` sibling files and explicit derived
|
|
166
|
+
project configurations. The derived project maps only the injected `tstyche`
|
|
167
|
+
import to this package's installed checker, preserving other compiler settings.
|
|
168
|
+
Original files are preserved. Configure project discovery
|
|
169
|
+
and external watchers to exclude that prefix. Preparation fails if ordinary
|
|
170
|
+
project discovery includes generated files. Cleanup preserves files modified by
|
|
171
|
+
other writers and reports failures.
|
|
172
|
+
|
|
173
|
+
Sibling modules have distinct identity. Direct self-imports and imports between
|
|
174
|
+
translated modules are repaired where unambiguous. Transitive nominal references,
|
|
175
|
+
package resolution, and source-sensitive constructs can still produce false
|
|
176
|
+
passes or failures. This is best-effort checking, not transparent equivalence to
|
|
177
|
+
checking the original module. Detected ambiguity is inconclusive. Results retain
|
|
178
|
+
original locations and adapter provenance.
|
|
179
|
+
|
|
180
|
+
Checker calls are serialized within the package. Do not overlap unrelated direct
|
|
181
|
+
TSTyche runs in the same process. Dedicated watch support, checker deadlines,
|
|
182
|
+
and historical reproduction remain separate integration work.
|
|
183
|
+
|
|
184
|
+
## Compiler planning
|
|
185
|
+
|
|
186
|
+
A profile may select several exact compiler versions:
|
|
187
|
+
|
|
188
|
+
```ts
|
|
189
|
+
compiler: {
|
|
190
|
+
kind: 'matrix',
|
|
191
|
+
compilers: [
|
|
192
|
+
{ kind: 'local' },
|
|
193
|
+
{ kind: 'version', version: '6.0.3' }
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Planning resolves `local` once and deduplicates equivalent versions. Each
|
|
199
|
+
compiler produces distinct executable work while retaining the logical case
|
|
200
|
+
identity. A local compiler must also be loadable by its exact version.
|
|
201
|
+
|
|
202
|
+
Preparation retains the original compiler program, configuration, source
|
|
203
|
+
fingerprints, and assertion ownership. Compiler reads include imported
|
|
204
|
+
declarations, inherited configuration, and resolution metadata. Frozen facts
|
|
205
|
+
are available before execution; generated-input provenance follows in the
|
|
206
|
+
result artifact. Facts use lossless JSON rather than assertion serialization.
|
|
207
|
+
|
|
208
|
+
Detected changes require fresh collection. Inputs are checked before and after
|
|
209
|
+
checking; drift invalidates the invocation and stops remaining compilers.
|
|
210
|
+
This detects observed filesystem drift without providing an isolated snapshot
|
|
211
|
+
or guaranteeing detection of transient changes restored between checks.
|
|
212
|
+
|
|
213
|
+
Direct checks expand runtime and compiler variants before filtering. Supply a
|
|
214
|
+
nonnegative seed for `order: 'seeded'`. Filters precede sharding and ordering;
|
|
215
|
+
an empty shard succeeds without invoking the checker. Nested assertion selectors
|
|
216
|
+
are unsupported. Result order follows the selected plan; checker traversal may
|
|
217
|
+
group shared static evidence independently.
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
|
|
3
|
+
"bomFormat": "CycloneDX",
|
|
4
|
+
"specVersion": "1.6",
|
|
5
|
+
"version": 1,
|
|
6
|
+
"metadata": {
|
|
7
|
+
"tools": {
|
|
8
|
+
"components": [
|
|
9
|
+
{
|
|
10
|
+
"type": "application",
|
|
11
|
+
"name": "packtory",
|
|
12
|
+
"version": "0.0.124"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"component": {
|
|
17
|
+
"type": "library",
|
|
18
|
+
"name": "@overkill-dev/type-test",
|
|
19
|
+
"version": "0.0.2",
|
|
20
|
+
"bom-ref": "pkg:npm/@overkill-dev/type-test@0.0.2",
|
|
21
|
+
"purl": "pkg:npm/@overkill-dev/type-test@0.0.2"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"components": [
|
|
25
|
+
{
|
|
26
|
+
"type": "library",
|
|
27
|
+
"name": "@overkill-dev/engine",
|
|
28
|
+
"version": "0.0.78",
|
|
29
|
+
"bom-ref": "pkg:npm/@overkill-dev/engine@0.0.78",
|
|
30
|
+
"scope": "optional",
|
|
31
|
+
"licenses": [
|
|
32
|
+
{
|
|
33
|
+
"expression": "MIT"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"purl": "pkg:npm/@overkill-dev/engine@0.0.78"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "library",
|
|
40
|
+
"name": "@overkill-dev/run",
|
|
41
|
+
"version": "0.0.99",
|
|
42
|
+
"bom-ref": "pkg:npm/@overkill-dev/run@0.0.99",
|
|
43
|
+
"scope": "optional",
|
|
44
|
+
"licenses": [
|
|
45
|
+
{
|
|
46
|
+
"expression": "MIT"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"purl": "pkg:npm/@overkill-dev/run@0.0.99"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "library",
|
|
53
|
+
"name": "p-limit",
|
|
54
|
+
"version": "7.3.3",
|
|
55
|
+
"bom-ref": "pkg:npm/p-limit@7.3.3",
|
|
56
|
+
"scope": "required",
|
|
57
|
+
"licenses": [
|
|
58
|
+
{
|
|
59
|
+
"expression": "MIT"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"purl": "pkg:npm/p-limit@7.3.3"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "library",
|
|
66
|
+
"name": "tslib",
|
|
67
|
+
"version": "2.8.1",
|
|
68
|
+
"bom-ref": "pkg:npm/tslib@2.8.1",
|
|
69
|
+
"scope": "required",
|
|
70
|
+
"licenses": [
|
|
71
|
+
{
|
|
72
|
+
"expression": "0BSD"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"purl": "pkg:npm/tslib@2.8.1"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "library",
|
|
79
|
+
"name": "tstyche",
|
|
80
|
+
"version": "7.2.5",
|
|
81
|
+
"bom-ref": "pkg:npm/tstyche@7.2.5",
|
|
82
|
+
"scope": "required",
|
|
83
|
+
"licenses": [
|
|
84
|
+
{
|
|
85
|
+
"expression": "MIT"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"purl": "pkg:npm/tstyche@7.2.5"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "library",
|
|
92
|
+
"name": "zod",
|
|
93
|
+
"version": "4.6.7",
|
|
94
|
+
"bom-ref": "pkg:npm/zod@4.6.7",
|
|
95
|
+
"scope": "required",
|
|
96
|
+
"licenses": [
|
|
97
|
+
{
|
|
98
|
+
"expression": "MIT"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"purl": "pkg:npm/zod@4.6.7"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"dependencies": [
|
|
105
|
+
{
|
|
106
|
+
"ref": "pkg:npm/@overkill-dev/engine@0.0.78"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"ref": "pkg:npm/@overkill-dev/run@0.0.99"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"ref": "pkg:npm/@overkill-dev/type-test@0.0.2",
|
|
113
|
+
"dependsOn": [
|
|
114
|
+
"pkg:npm/@overkill-dev/engine@0.0.78",
|
|
115
|
+
"pkg:npm/@overkill-dev/run@0.0.99",
|
|
116
|
+
"pkg:npm/p-limit@7.3.3",
|
|
117
|
+
"pkg:npm/tslib@2.8.1",
|
|
118
|
+
"pkg:npm/tstyche@7.2.5",
|
|
119
|
+
"pkg:npm/zod@4.6.7"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"ref": "pkg:npm/p-limit@7.3.3"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"ref": "pkg:npm/tslib@2.8.1"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"ref": "pkg:npm/tstyche@7.2.5"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"ref": "pkg:npm/zod@4.6.7"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|