@overkill-dev/type-test 0.0.5 → 0.0.6
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/config/adapter-facts.js +15 -0
- package/config/adapter-facts.js.map +1 -0
- package/generated-input-path.js +5 -0
- package/generated-input-path.js.map +1 -0
- package/package-version.js +34 -0
- package/package-version.js.map +1 -0
- package/package.json +8 -12
- package/packages/type-test/assertion-reference.d.ts +3 -12
- package/packages/type-test/assertion-reference.d.ts.map +1 -1
- package/packages/type-test/assertion-reference.js +0 -12
- package/packages/type-test/assertion-reference.js.map +1 -1
- package/packages/type-test/checker-boundary-validation.js +13 -10
- package/packages/type-test/checker-boundary-validation.js.map +1 -1
- package/packages/type-test/checker-diagnostics.js +2 -2
- package/packages/type-test/checker-diagnostics.js.map +1 -1
- package/packages/type-test/checker-evidence.js.map +1 -1
- package/packages/type-test/checker-project.js +5 -3
- package/packages/type-test/checker-project.js.map +1 -1
- package/packages/type-test/checker-resolution.js +15 -24
- package/packages/type-test/checker-resolution.js.map +1 -1
- package/packages/type-test/checker.entry-point.js +33 -14
- package/packages/type-test/checker.entry-point.js.map +1 -1
- package/packages/type-test/compiler-file-system.js +67 -0
- package/packages/type-test/compiler-file-system.js.map +1 -0
- package/packages/type-test/compiler-lifetime.js +52 -0
- package/packages/type-test/compiler-lifetime.js.map +1 -0
- package/packages/type-test/compiler-plan.js +92 -44
- package/packages/type-test/compiler-plan.js.map +1 -1
- package/packages/type-test/family-backend.entry-point.js +3 -3
- package/packages/type-test/family-backend.entry-point.js.map +1 -1
- package/packages/type-test/frozen-inputs.js +68 -97
- package/packages/type-test/frozen-inputs.js.map +1 -1
- package/packages/type-test/frozen-project.js +63 -41
- package/packages/type-test/frozen-project.js.map +1 -1
- package/packages/type-test/generated-imports.js +45 -31
- package/packages/type-test/generated-imports.js.map +1 -1
- package/packages/type-test/generated-input.entry-point.js +4 -3
- package/packages/type-test/generated-input.entry-point.js.map +1 -1
- package/packages/type-test/generated-module-plan.js +9 -14
- package/packages/type-test/generated-module-plan.js.map +1 -1
- package/packages/type-test/installed-compiler.js +112 -0
- package/packages/type-test/installed-compiler.js.map +1 -0
- package/packages/type-test/native-execution.js +6 -6
- package/packages/type-test/native-execution.js.map +1 -1
- package/packages/type-test/native-reference-expression.js +5 -29
- package/packages/type-test/native-reference-expression.js.map +1 -1
- package/packages/type-test/native-reference.js +16 -43
- package/packages/type-test/native-reference.js.map +1 -1
- package/packages/type-test/native-results.js +1 -1
- package/packages/type-test/native-results.js.map +1 -1
- package/packages/type-test/native-translation.js +33 -54
- package/packages/type-test/native-translation.js.map +1 -1
- package/packages/type-test/profile-settings.d.ts +19 -7
- package/packages/type-test/profile-settings.d.ts.map +1 -1
- package/packages/type-test/profile-settings.js +3 -2
- package/packages/type-test/profile-settings.js.map +1 -1
- package/packages/type-test/profile.entry-point.d.ts +8 -11
- package/packages/type-test/profile.entry-point.d.ts.map +1 -1
- package/packages/type-test/profile.entry-point.js +1 -5
- package/packages/type-test/profile.entry-point.js.map +1 -1
- package/packages/type-test/scope-assertions.js +40 -37
- package/packages/type-test/scope-assertions.js.map +1 -1
- package/packages/type-test/source-analysis.js +109 -14
- package/packages/type-test/source-analysis.js.map +1 -1
- package/packages/type-test/source-options.js +81 -30
- package/packages/type-test/source-options.js.map +1 -1
- package/packages/type-test/source-ownership.js +48 -46
- package/packages/type-test/source-ownership.js.map +1 -1
- package/packages/type-test/type-test.entry-point.d.ts +9 -60
- package/packages/type-test/type-test.entry-point.d.ts.map +1 -1
- package/packages/type-test/type-test.entry-point.js +2 -27
- package/packages/type-test/type-test.entry-point.js.map +1 -1
- package/readme.md +75 -171
- package/software-bill-of-materials.cyclonedx.json +14 -31
- package/packages/type-test/check.entry-point.d.ts +0 -13
- package/packages/type-test/check.entry-point.d.ts.map +0 -1
- package/packages/type-test/check.entry-point.js +0 -82
- package/packages/type-test/check.entry-point.js.map +0 -1
- package/packages/type-test/decorator-translation.js +0 -58
- package/packages/type-test/decorator-translation.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-ownership.js","sourceRoot":"","sources":["../../../../../source/packages/type-test/source-ownership.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAuB,MAAM,sBAAiC,CAAC;AAEhH,OAAO,EACH,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EAE1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAK7E,SAAS,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"source-ownership.js","sourceRoot":"","sources":["../../../../../source/packages/type-test/source-ownership.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAuB,MAAM,sBAAiC,CAAC;AAEhH,OAAO,EACH,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EAE1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAK7E,SAAS,YAAY,CAAC,QAAwB,EAAE,IAAqB;IACjE,OAAO,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,oBAAoB,CAAC,IAAI,CAAC;QACxE,QAAQ,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;AACnF,CAAC;AAED,KAAK,UAAU,oBAAoB,CAC/B,QAAwB,EACxB,UAA2B;IAE3B,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACxD,OAAO,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,kBAAkB,CAAC,MAAM,CAAC,CAAC;AACxE,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CAAC,QAAwB,EAAE,QAAwB;IACtF,MAAM,MAAM,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IACzC,OAAO,MAAM,YAAY,CAAC,QAAQ,EAAE,MAAM,cAAc,CAAC,QAAQ,EAAE,MAAM,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AACrH,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"}
|
|
@@ -1,64 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
export type {
|
|
3
|
-
export
|
|
4
|
-
export declare const sameType: {
|
|
5
|
-
|
|
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;
|
|
1
|
+
export type { TypeAssertionReference, TypeRelationBindings, TypeRelation } from './assertion-reference.ts';
|
|
2
|
+
export type { CompilerSelection, CompilerPolicy, TypeTestSettings } from './profile-settings.ts';
|
|
3
|
+
export { family } from './profile.entry-point.ts';
|
|
4
|
+
export declare const sameType: import("./assertion-reference.ts").TypeRelationBindings & {
|
|
5
|
+
readonly not: import("./assertion-reference.ts").TypeRelationBindings;
|
|
54
6
|
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<Decorator>(): TypeAssertionReference<readonly [declaration: DecoratorDeclaration<Decorator>], readonly [Decorator]>;
|
|
58
|
-
readonly withActual: <Decorator>(actual: Decorator) => TypeAssertionReference<readonly [declaration: DecoratorDeclaration<Decorator>], readonly [Decorator]>;
|
|
7
|
+
export declare const assignableTo: import("./assertion-reference.ts").TypeRelationBindings & {
|
|
8
|
+
readonly not: import("./assertion-reference.ts").TypeRelationBindings;
|
|
59
9
|
};
|
|
60
|
-
export declare const
|
|
61
|
-
not:
|
|
10
|
+
export declare const assignableFrom: import("./assertion-reference.ts").TypeRelationBindings & {
|
|
11
|
+
readonly not: import("./assertion-reference.ts").TypeRelationBindings;
|
|
62
12
|
};
|
|
63
|
-
export { family } from './profile.entry-point.ts';
|
|
64
13
|
//# sourceMappingURL=type-test.entry-point.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-test.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/type-test/type-test.entry-point.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"type-test.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/type-test/type-test.entry-point.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC3G,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACjG,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAO,MAAM,QAAQ;;CAAuB,CAAC;AAC7C,eAAO,MAAM,YAAY;;CAAmC,CAAC;AAC7D,eAAO,MAAM,cAAc;;CAAqC,CAAC"}
|
|
@@ -1,31 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { typeRelation } from "./assertion-reference.js";
|
|
2
|
+
export { family } from "./profile.entry-point.js";
|
|
2
3
|
export const sameType = typeRelation('toBe');
|
|
3
4
|
export const assignableTo = typeRelation('toBeAssignableTo');
|
|
4
5
|
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
6
|
//# sourceMappingURL=type-test.entry-point.js.map
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"type-test.entry-point.js","sourceRoot":"","sources":["../../../../../source/packages/type-test/type-test.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIxD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,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"}
|
package/readme.md
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
# `@overkill-dev/type-test`
|
|
2
2
|
|
|
3
|
-
Optional
|
|
4
|
-
|
|
3
|
+
Optional compiler-backed assertions. Install this package and provision TypeScript
|
|
4
|
+
`7.1.0-beta` explicitly. Checking never installs or downloads compilers.
|
|
5
5
|
|
|
6
6
|
```sh
|
|
7
|
-
npm install -D @overkill-dev/type-test
|
|
7
|
+
npm install -D @overkill-dev/type-test typescript-beta@npm:typescript@7.1.0-beta
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Profiles
|
|
11
11
|
|
|
12
12
|
```ts
|
|
13
|
-
import { fileURLToPath } from 'node:url';
|
|
14
13
|
import { defineConfig } from '@overkill-dev/test/config';
|
|
15
|
-
import { family
|
|
14
|
+
import { family } from '@overkill-dev/type-test';
|
|
16
15
|
|
|
17
16
|
export const config = defineConfig({
|
|
18
17
|
profiles: {
|
|
19
18
|
types: {
|
|
20
|
-
testFamily:
|
|
19
|
+
testFamily: family,
|
|
21
20
|
files: { include: [ 'source/**/*.types.ts' ] },
|
|
22
21
|
settings: {
|
|
23
|
-
projectConfigPath:
|
|
24
|
-
compiler: {
|
|
22
|
+
projectConfigPath: './tsconfig.json',
|
|
23
|
+
compiler: {
|
|
24
|
+
kind: 'package',
|
|
25
|
+
specifier: 'typescript-beta',
|
|
26
|
+
version: '7.1.0-beta'
|
|
27
|
+
}
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
30
|
}
|
|
@@ -29,189 +32,90 @@ export const config = defineConfig({
|
|
|
29
32
|
```
|
|
30
33
|
|
|
31
34
|
Run `overkill run --profile types` or `overkill list --profile types`.
|
|
32
|
-
|
|
33
|
-
|
|
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.
|
|
35
|
+
The package is separate from `@overkill-dev/test`; imports do not register families.
|
|
36
|
+
Compiler and checker code load only when preparing an explicitly selected family.
|
|
39
37
|
|
|
40
|
-
|
|
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
|
-
```
|
|
38
|
+
## Relations
|
|
51
39
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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:
|
|
40
|
+
The root exports `family`, `sameType`, `assignableTo`, and `assignableFrom`,
|
|
41
|
+
plus compiler settings and assertion-reference types. Ability matchers, `_`,
|
|
42
|
+
and the former `/profile` and `/check` subpaths have been removed.
|
|
83
43
|
|
|
84
44
|
```ts
|
|
85
|
-
scope.assert(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
45
|
+
scope.assert(sameType<Actual, Expected>());
|
|
46
|
+
scope.assert(assignableTo.withActual<Expected>(), actual);
|
|
47
|
+
scope.assert(assignableFrom.withExpected<Actual>(), expected);
|
|
48
|
+
scope.assert(sameType.expressions, actual, expected);
|
|
49
|
+
scope.assert(sameType.not<Actual, Expected>());
|
|
50
|
+
scope.assert(sameType.not.expressions, actual, expected);
|
|
89
51
|
```
|
|
90
52
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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.
|
|
53
|
+
Each relation supports all four forms and `.not`. `assignableTo` asks whether
|
|
54
|
+
actual is assignable to expected; `assignableFrom` reverses that direction.
|
|
55
|
+
Expressions supply types at their source locations. Analysis never executes
|
|
56
|
+
case bodies or expression side effects. References accept `scope.assert`,
|
|
57
|
+
not `scope.require`; ordinary runtime use throws.
|
|
99
58
|
|
|
100
|
-
|
|
59
|
+
## Installed compiler selection
|
|
101
60
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
A selected body without native assertions fails; intentional skipped cases stay
|
|
106
|
-
skipped. Missing checker evidence is inconclusive and fails the run.
|
|
61
|
+
`projectConfigPath` resolves against the explicit project root. The actual
|
|
62
|
+
configuration, inherited options, references, and module resolution are captured;
|
|
63
|
+
a missing configuration fails preparation.
|
|
107
64
|
|
|
108
|
-
|
|
65
|
+
`{ kind: 'local' }` resolves the project's installed `typescript`.
|
|
66
|
+
`{ kind: 'package', specifier, version }` resolves an installed package alias
|
|
67
|
+
from the same root and requires its exact reported version. Only `7.1.0-beta`
|
|
68
|
+
is supported. Other releases, missing packages, and version mismatches fail
|
|
69
|
+
preparation without fallback. The old `kind: 'version'` selection is rejected.
|
|
109
70
|
|
|
110
|
-
|
|
111
|
-
|
|
71
|
+
A nonempty `{ kind: 'matrix', compilers: [...] }` preserves first occurrence
|
|
72
|
+
order and deduplicates entries only when canonical installation and fingerprints
|
|
73
|
+
agree. Distinct implementations claiming the same version are rejected.
|
|
74
|
+
Variants retain logical case identity and add compiler identity to executable work.
|
|
75
|
+
Preparation facts include the installed compiler, implementation fingerprints,
|
|
76
|
+
original project configuration, and observed inputs. Changed inputs require fresh
|
|
77
|
+
preparation. Compiler implementation changes require restarting the execution
|
|
78
|
+
host, because Node retains imported compiler modules.
|
|
79
|
+
|
|
80
|
+
## Direct engine execution
|
|
81
|
+
|
|
82
|
+
Use the engine that created the root:
|
|
112
83
|
|
|
113
|
-
|
|
84
|
+
```ts
|
|
114
85
|
await using prepared = await engine.prepareFamily({
|
|
115
86
|
testPlan: engine.createTestPlan(root),
|
|
116
|
-
testFamily:
|
|
117
|
-
settings
|
|
118
|
-
projectRoot
|
|
87
|
+
testFamily: family,
|
|
88
|
+
settings,
|
|
89
|
+
projectRoot,
|
|
119
90
|
signal
|
|
120
91
|
});
|
|
121
92
|
const collected = await prepared.collect({
|
|
122
93
|
workIds: prepared.testPlan.cases.map((testCase) => testCase.workId),
|
|
123
94
|
signal
|
|
124
95
|
});
|
|
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
|
-
});
|
|
96
|
+
const result = await engine.execute(collected, { ...executionOptions, signal });
|
|
134
97
|
```
|
|
135
98
|
|
|
136
|
-
|
|
137
|
-
|
|
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:
|
|
99
|
+
The preparation owns compiler sessions and releases them through engine cleanup.
|
|
100
|
+
Coverage, runtime resources, retries, and runtime assertion operations are unsupported.
|
|
187
101
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
102
|
+
## Current checker limitations
|
|
103
|
+
|
|
104
|
+
Projects with references are rejected before generated checking. TSTyche's beta
|
|
105
|
+
runner drops references from its internal project wrapper. Supporting them
|
|
106
|
+
requires the planned original-source checker.
|
|
107
|
+
|
|
108
|
+
Checking still uses dot-prefixed `.overkill-type-test-*` sibling modules and a
|
|
109
|
+
related temporary project. Exclude that prefix from external watchers. Original
|
|
110
|
+
files are preserved; cleanup reports files changed by another writer.
|
|
111
|
+
|
|
112
|
+
Generated modules have distinct nominal identity. Direct self-imports and imports
|
|
113
|
+
between translated modules are repaired when unambiguous; transitive nominal and
|
|
114
|
+
source-sensitive constructs can still produce false verdicts. Unsupported or
|
|
115
|
+
missing evidence is inconclusive. Original-source comparison and the complete
|
|
116
|
+
relation semantics remain separate implementation work.
|
|
197
117
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
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.
|
|
118
|
+
Checker calls are serialized. Do not overlap unrelated TSTyche runs in the same
|
|
119
|
+
process. Preparation and source analysis use asynchronous beta compiler sessions.
|
|
120
|
+
TSTyche's checker and the compiler filesystem callbacks remain synchronous.
|
|
121
|
+
Dedicated deadline and watch behavior remain separate lifecycle work.
|
|
@@ -16,37 +16,24 @@
|
|
|
16
16
|
"component": {
|
|
17
17
|
"type": "library",
|
|
18
18
|
"name": "@overkill-dev/type-test",
|
|
19
|
-
"version": "0.0.
|
|
20
|
-
"bom-ref": "pkg:npm/@overkill-dev/type-test@0.0.
|
|
21
|
-
"purl": "pkg:npm/@overkill-dev/type-test@0.0.
|
|
19
|
+
"version": "0.0.6",
|
|
20
|
+
"bom-ref": "pkg:npm/@overkill-dev/type-test@0.0.6",
|
|
21
|
+
"purl": "pkg:npm/@overkill-dev/type-test@0.0.6"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"components": [
|
|
25
25
|
{
|
|
26
26
|
"type": "library",
|
|
27
27
|
"name": "@overkill-dev/engine",
|
|
28
|
-
"version": "0.0.
|
|
29
|
-
"bom-ref": "pkg:npm/@overkill-dev/engine@0.0.
|
|
28
|
+
"version": "0.0.81",
|
|
29
|
+
"bom-ref": "pkg:npm/@overkill-dev/engine@0.0.81",
|
|
30
30
|
"scope": "optional",
|
|
31
31
|
"licenses": [
|
|
32
32
|
{
|
|
33
33
|
"expression": "MIT"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
|
-
"purl": "pkg:npm/@overkill-dev/engine@0.0.
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"type": "library",
|
|
40
|
-
"name": "@overkill-dev/run",
|
|
41
|
-
"version": "0.0.102",
|
|
42
|
-
"bom-ref": "pkg:npm/@overkill-dev/run@0.0.102",
|
|
43
|
-
"scope": "optional",
|
|
44
|
-
"licenses": [
|
|
45
|
-
{
|
|
46
|
-
"expression": "MIT"
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"purl": "pkg:npm/@overkill-dev/run@0.0.102"
|
|
36
|
+
"purl": "pkg:npm/@overkill-dev/engine@0.0.81"
|
|
50
37
|
},
|
|
51
38
|
{
|
|
52
39
|
"type": "library",
|
|
@@ -77,15 +64,15 @@
|
|
|
77
64
|
{
|
|
78
65
|
"type": "library",
|
|
79
66
|
"name": "tstyche",
|
|
80
|
-
"version": "
|
|
81
|
-
"bom-ref": "pkg:npm/tstyche@
|
|
67
|
+
"version": "8.0.0-beta.0",
|
|
68
|
+
"bom-ref": "pkg:npm/tstyche@8.0.0-beta.0",
|
|
82
69
|
"scope": "required",
|
|
83
70
|
"licenses": [
|
|
84
71
|
{
|
|
85
72
|
"expression": "MIT"
|
|
86
73
|
}
|
|
87
74
|
],
|
|
88
|
-
"purl": "pkg:npm/tstyche@
|
|
75
|
+
"purl": "pkg:npm/tstyche@8.0.0-beta.0"
|
|
89
76
|
},
|
|
90
77
|
{
|
|
91
78
|
"type": "library",
|
|
@@ -103,19 +90,15 @@
|
|
|
103
90
|
],
|
|
104
91
|
"dependencies": [
|
|
105
92
|
{
|
|
106
|
-
"ref": "pkg:npm/@overkill-dev/engine@0.0.
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"ref": "pkg:npm/@overkill-dev/run@0.0.102"
|
|
93
|
+
"ref": "pkg:npm/@overkill-dev/engine@0.0.81"
|
|
110
94
|
},
|
|
111
95
|
{
|
|
112
|
-
"ref": "pkg:npm/@overkill-dev/type-test@0.0.
|
|
96
|
+
"ref": "pkg:npm/@overkill-dev/type-test@0.0.6",
|
|
113
97
|
"dependsOn": [
|
|
114
|
-
"pkg:npm/@overkill-dev/engine@0.0.
|
|
115
|
-
"pkg:npm/@overkill-dev/run@0.0.102",
|
|
98
|
+
"pkg:npm/@overkill-dev/engine@0.0.81",
|
|
116
99
|
"pkg:npm/p-limit@7.3.3",
|
|
117
100
|
"pkg:npm/tslib@2.9.1",
|
|
118
|
-
"pkg:npm/tstyche@
|
|
101
|
+
"pkg:npm/tstyche@8.0.0-beta.0",
|
|
119
102
|
"pkg:npm/zod@4.6.7"
|
|
120
103
|
]
|
|
121
104
|
},
|
|
@@ -126,7 +109,7 @@
|
|
|
126
109
|
"ref": "pkg:npm/tslib@2.9.1"
|
|
127
110
|
},
|
|
128
111
|
{
|
|
129
|
-
"ref": "pkg:npm/tstyche@
|
|
112
|
+
"ref": "pkg:npm/tstyche@8.0.0-beta.0"
|
|
130
113
|
},
|
|
131
114
|
{
|
|
132
115
|
"ref": "pkg:npm/zod@4.6.7"
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type Engine, type TestRoot } from '@overkill-dev/engine';
|
|
2
|
-
import type { RunnerResult, RunRequest } from '@overkill-dev/run';
|
|
3
|
-
import type { TypeTestOptions } from './profile-settings.ts';
|
|
4
|
-
export type TypeTestCheckRequest = TypeTestOptions & {
|
|
5
|
-
readonly engine: Engine;
|
|
6
|
-
readonly root: TestRoot;
|
|
7
|
-
readonly selection: RunRequest['selection'];
|
|
8
|
-
readonly order: RunRequest['order'];
|
|
9
|
-
readonly seed: RunRequest['seed'];
|
|
10
|
-
readonly shard: RunRequest['shard'];
|
|
11
|
-
};
|
|
12
|
-
export declare function checkTypeTests(request: TypeTestCheckRequest): Promise<RunnerResult>;
|
|
13
|
-
//# sourceMappingURL=check.entry-point.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"check.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/type-test/check.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,MAAM,sBAAiC,CAAC;AAC9F,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAA2B,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAK7D,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG;IACjD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAC5C,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CACvC,CAAC;AAyCF,wBAAsB,cAAc,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,CAyBzF"}
|