@termwright/conformance 0.4.1 → 0.5.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/dist/index.d.ts +4 -4
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +9 -18
package/dist/index.d.ts
CHANGED
|
@@ -247,10 +247,10 @@ declare function parseDeclaredDeviations(readme: string): Map<string, string[]>;
|
|
|
247
247
|
*
|
|
248
248
|
* Call it at the top level of a test file; it declares its own `describe`.
|
|
249
249
|
*
|
|
250
|
-
*
|
|
251
|
-
* plain script that only wants
|
|
252
|
-
* function is async: `await` it at the top level of the test
|
|
253
|
-
* where
|
|
250
|
+
* Termwright's test surface is imported dynamically, so the package stays
|
|
251
|
+
* importable from a plain script that only wants fixture paths or the probe.
|
|
252
|
+
* That is why the function is async: `await` it at the top level of the test
|
|
253
|
+
* file, where the embedded engine collects the suite.
|
|
254
254
|
*
|
|
255
255
|
* @example
|
|
256
256
|
* ```ts
|
package/dist/index.js
CHANGED
|
@@ -54,7 +54,7 @@ var certified_instrumentation_default = {
|
|
|
54
54
|
var BUILTIN_PROFILES = certified_instrumentation_default.profiles;
|
|
55
55
|
var INK_VERSION = BUILTIN_PROFILES.at(-1)?.version ?? "unsupported";
|
|
56
56
|
|
|
57
|
-
// ../probe-ink/dist/chunk-
|
|
57
|
+
// ../probe-ink/dist/chunk-VRIETIMV.js
|
|
58
58
|
import { validateProbeAnnotations } from "@termwright/protocol";
|
|
59
59
|
|
|
60
60
|
// ../pty/dist/index.js
|
|
@@ -1104,8 +1104,14 @@ var CONTAINER_ROLES = /* @__PURE__ */ new Set([
|
|
|
1104
1104
|
]);
|
|
1105
1105
|
var snapshotsOf = (observation) => observation.messages.filter((entry) => entry.message.type === "semantic-full").map((entry) => entry.message.snapshot);
|
|
1106
1106
|
async function runAdapterConformance(options) {
|
|
1107
|
-
const {
|
|
1108
|
-
|
|
1107
|
+
const {
|
|
1108
|
+
afterAll,
|
|
1109
|
+
afterEach,
|
|
1110
|
+
beforeEach,
|
|
1111
|
+
describe,
|
|
1112
|
+
expect,
|
|
1113
|
+
it: resourceAwareIt
|
|
1114
|
+
} = await import("@termwright/test");
|
|
1109
1115
|
const it = resourceAwareIt.resources({ terminals: 1, traceWriters: 0 });
|
|
1110
1116
|
const timeout = options.timeoutMs ?? 1e4;
|
|
1111
1117
|
const toolchain = options.requires === void 0 || commandAvailable(options.requires.probe, {
|