Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
3ccb7bd
test: attribute failure journals to declaring cases
taras Nov 16, 2026
41946db
test: capture failure journals for Testing document cases
taras Nov 16, 2026
0a1f45e
test: capture failure journals for live WebForm cases
taras Nov 16, 2026
e9aef6f
test: capture failure journals for held Core hosts
taras Nov 16, 2026
72a360f
test: retain the ORC12 child journal for parent failures
taras Nov 16, 2026
d6398b9
test: attribute journals in ordinary Git execution cases
taras Nov 16, 2026
78360b8
test: attribute journals in direct Core document cases
taras Nov 16, 2026
2c56e87
test: attribute failure journals for live synthetic REPL entries
taras Nov 16, 2026
a633714
test: attribute guarded ACP and TestAgent execution journals
taras Nov 16, 2026
1be6fa0
test: attribute safe Agent and nested Testing execution journals
taras Nov 16, 2026
576f139
test: attribute fresh REPL observation entry journals
taras Nov 16, 2026
7de6ad0
test: capture additional direct Core execution journals
taras Nov 16, 2026
e9d5c7f
test: attribute fresh workflow observation journals
taras Nov 16, 2026
a12074a
test: attribute fresh CLI and Testing execution journals
taras Nov 16, 2026
5003c32
test: attribute fresh Git issue scenario journals
taras Nov 16, 2026
81ef099
test: retain separate CLI assembly journals for parent failures
taras Nov 16, 2026
88cc32c
test: attribute guarded CLI host and upgrade journals
taras Nov 16, 2026
3409f1d
test: attribute guarded Agent provider and usage journals
taras Nov 16, 2026
da0ecf3
test: attribute fresh Answers, Elicit and Fail fixture journals
taras Nov 16, 2026
468000c
test: attribute fresh TestAgent component and launch journals
taras Nov 16, 2026
adb9c60
test: capture fresh inline REPL selection journals
taras Nov 16, 2026
113b89c
test: capture guarded Glob fixture journals
taras Nov 16, 2026
3421bee
test: attribute guarded Agent function component journals
taras Nov 16, 2026
1143a70
test: retain separate journals for Testing session siblings
taras Nov 16, 2026
b310585
test: capture guarded Core prop evaluation journals
taras Nov 16, 2026
dbb0571
test: preserve independently bounded subprocess journals
taras Nov 16, 2026
c5deede
test: capture additional held host and hook journals
taras Nov 16, 2026
4e77e93
test: capture guarded root comparisons and eval lifetimes
taras Nov 16, 2026
d0ed304
test: capture complete Testing activation sessions
taras Nov 16, 2026
389ab30
test: attribute guarded exec timeout fixture journals
taras Nov 16, 2026
3391a0f
test: retain the activation expiry fixture journal
taras Nov 16, 2026
90828d1
test: attribute guarded Core document helpers
taras Nov 16, 2026
e6d3589
test: attribute guarded Agent package execution controls
taras Nov 16, 2026
20636df
test: attribute guarded Git and Workflow host probes
taras Nov 16, 2026
1dc1607
test: attribute guarded Plan and Upgrade documents
taras Nov 16, 2026
c84628f
test: attribute fresh REPL source ownership runs
taras Nov 16, 2026
d9a16f3
test: attribute fresh Git binding and Issue envelopes
taras Nov 16, 2026
68b2cf9
test: attribute fresh Workflow and Testing journals
taras Nov 16, 2026
5e93fa6
test: preserve both workflow inputs in identity comparison
taras Nov 16, 2026
5289ed5
test: attribute fresh Core execution and comparison owners
taras Nov 16, 2026
260cdba
test: attribute joined read-only component subprocess journals
taras Nov 16, 2026
025238c
test: attribute loader comparisons and a fresh REPL refusal
taras Nov 16, 2026
f192591
test: attribute independent Git reconciliation runs
taras Nov 16, 2026
51a9f5b
test: attribute execution init and component fixture journals
taras Nov 16, 2026
2302758
test: capture Testing activation and Workflow observation cases
taras Nov 16, 2026
430e2d1
test: capture Git observation and owned-effect fixtures
taras Nov 16, 2026
22a9ae6
test: capture fresh REPL history head entries
taras Nov 16, 2026
e2222dd
test: attribute contextual cwd and validation comparison journals
taras Nov 16, 2026
df6fdaa
test: capture fresh REPL lifecycle entries
taras Nov 16, 2026
91e2098
test: complete guarded binding and failure fixture coverage
taras Nov 16, 2026
5691d14
Attribute filesystem and generated document test failures
taras Nov 16, 2026
7492b4c
Attribute inline roots and fresh CLI TODO executions
taras Nov 16, 2026
c8c0e38
Attribute single-entry REPL lifecycle checks
taras Nov 16, 2026
1674e32
Attribute REPL component lookup executions
taras Nov 16, 2026
dcf590c
Keep the GO11 Git assertion inside journal capture
taras Nov 16, 2026
32d1490
Carry forward the reviewed GO11 journal correction
taras Nov 16, 2026
caff798
Attribute fresh Core target and protocol executions
taras Nov 16, 2026
9d5dca3
Attribute fresh service and ticket checkout test roots
taras Nov 16, 2026
9ab4d98
Complete capture for mixed Core document fixtures
taras Nov 16, 2026
6b2828a
Attribute generated selection pairs and recovery guide test
taras Nov 16, 2026
163c923
Attribute ordinary Deno composition test roots
taras Nov 16, 2026
b8aa8db
Expose the shared test journal resource
taras Nov 17, 2026
dd651ac
Adopt shared journals in Core evaluator tests
taras Nov 17, 2026
fa56f41
Adopt shared journal resource in Each tests
taras Nov 17, 2026
6d8c9a5
Use shared failure journal package in evaluator cases
taras Nov 17, 2026
6cf50a4
Migrate Core cases to shared journal resource
taras Nov 17, 2026
2261675
test: adopt shared journal resource in #1356 consumers
taras Nov 17, 2026
b32a928
Integrate #1356 shared journal consumers
taras Nov 17, 2026
103aee9
Use package journal entry in Core stream tests
taras Nov 17, 2026
40c725b
Complete shared journal imports in #1356
taras Nov 17, 2026
00e78f8
merge signed failure journal foundation into #1357
taras Nov 17, 2026
71a0581
migrate #1357 ordinary journal cases to shared fixtures
taras Nov 17, 2026
db52b8c
Merge commit 'b8aa8db95573b84b0319d31d3948625eae7ebaef' into codex/lu…
taras Nov 17, 2026
fd67a87
Merge shared journal foundation into #1359
taras Nov 17, 2026
49db826
Migrate compiler boundary cases to shared failure journal
taras Nov 17, 2026
5cdf6d8
Use shared journal package imports in #1359 tests
taras Nov 17, 2026
9effd30
Use shared journal fixture in testing boundary cases
taras Nov 17, 2026
fdc1271
Use shared journal fixture for checkpoint case
taras Nov 17, 2026
c076e76
merge complete #1356 candidate into #1357
taras Nov 17, 2026
2cb79b2
Format #1356 shared journal tests
taras Nov 17, 2026
3e7ae5a
Integrate Luna formatting correction for #1356
taras Nov 17, 2026
b782964
merge formatter-corrected #1356 parent into #1357
taras Nov 17, 2026
72e2e7b
Merge shared journal foundation into #1360
taras Nov 17, 2026
9d9e46e
merge shared failure journal foundation into #1361
taras Nov 17, 2026
238c64b
Migrate eligible journal owners to shared fixtures
taras Nov 17, 2026
ae0e769
Merge branch 'codex/luna-1357-reviewed' into codex/luna-1358-shared-j…
taras Nov 17, 2026
2542546
Migrate #1361 journal fixtures to shared support
taras Nov 17, 2026
eedf19d
Integrate shared journal migration through #1359
taras Nov 17, 2026
86ff173
Restore #1359 journal ownership for nested tests
taras Nov 17, 2026
50f8335
Adopt shared failure journal in PR 1360 suites
Nov 17, 2026
85f16cb
Merge corrected PR 1359 into PR 1360 journal candidate
Nov 17, 2026
7be6c0a
Merge commit '85f16cba93c55caae2f7d1ee8efa6c8d6819e888' into codex/11…
taras Nov 17, 2026
038a1df
Restore attributed owners in Core journal suites
taras Nov 17, 2026
de474cb
Carry the #1359 attribution correction into #1360
taras Nov 17, 2026
0fd3896
Merge commit 'de474cbd661a3bec61c1990ece3c4453290fa71d' into codex/11…
taras Nov 17, 2026
7159cac
fix(core): restore D5 failure journal ownership
taras Nov 17, 2026
6c6d4a0
Restore failure journals in PR 1360 cases
Nov 17, 2026
d3c6ea4
Merge corrected PR 1359 D5 ownership into PR 1360
Nov 17, 2026
1487f79
Carry signed journal fixes through #1361
taras Nov 17, 2026
0fd285d
Restore direct it registration in Core held-host tests
Nov 17, 2026
53cb39c
Migrate assert throws journal ownership
taras Nov 17, 2026
c79ae82
Migrate testing boundary journal owner
taras Nov 17, 2026
c76ed7a
Restore direct test declarations in Agent, REPL and Web
taras Nov 17, 2026
2892509
Migrate testing boundary contract cases
taras Nov 17, 2026
a93742e
Migrate test component journal cases
taras Nov 17, 2026
49427d0
Migrate use testing journal cases
taras Nov 17, 2026
80c758d
Keep ordinary test declarations in two Testing suites
taras Nov 17, 2026
d33f642
Migrate workflow generated observation cases
taras Nov 17, 2026
27f6e4a
Remove unused journal case registrar
taras Nov 17, 2026
9a44b71
Integrate direct declarations in Testing and Workflow
taras Nov 17, 2026
4e12648
Remove unused testing case registrar
taras Nov 17, 2026
f7b8ea0
Restore direct it registration in Git tests
Nov 17, 2026
b9a7acf
Restore direct test declarations throughout the base journal PR
taras Nov 17, 2026
8dfb8a6
Restore direct Glob and TestAgent test declarations
taras Nov 17, 2026
feb2f97
Restore direct test declarations in #1358 suites
taras Nov 17, 2026
44d1a8b
Restore direct declarations for held-host cases
taras Nov 17, 2026
6f2c313
Carry direct test declarations into the bounded journal PR
taras Nov 17, 2026
5204275
Restore direct Git and Workflow test declarations
taras Nov 17, 2026
c5d4825
Merge revised #1357 journal registration migration into #1358
taras Nov 17, 2026
f1e2be2
Keep direct Testing declarations in the #1359 overlap
taras Nov 17, 2026
ec6959e
Integrate direct test declarations through #1359
taras Nov 17, 2026
7cafc7c
Restore direct REPL and Cwd test declarations
taras Nov 17, 2026
1c9de04
Integrate direct test declarations through #1360
taras Nov 17, 2026
7a49f36
Carry direct declarations through the #1361 stack
taras Nov 17, 2026
6a67566
Capture REPL entry and fixture failure journals
taras Nov 17, 2026
42a07fe
Preserve #1361 scope after rebasing #1360
taras Nov 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions packages/cli/tests/fixtures/repl/failure-journal.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import type { Operation } from "effection";
import process from "node:process";
import { captureTestJournal } from "@executablemd/test-support/failure-journal";
import type { JournalCase } from "../../../src/test-diagnostics.ts";
import type { DeliverySink } from "../../../src/stdout-delivery.ts";
import { partitionEntrySegments } from "../../../src/repl/entries.ts";
import type { ReplExecution } from "../../../src/repl/journal.ts";

/** Capture the admission owned by a synthetic, single-entry REPL fixture. */
export function captureReplEntry(
testCase: JournalCase,
id: string,
source: string,
body: (holder: ReplExecution) => Operation<void>,
sink: DeliverySink = process.stderr,
): Operation<void> {
return captureTestJournal(testCase, source, (stream) => body({ id, stream }), {
sink,
selectEvents(events) {
const partition = partitionEntrySegments(events);
if (!partition.ok) {
throw partition.error;
}
if (partition.value.length > 1) {
throw new Error("fixture execution holds more than one admitted entry");
}
return partition.value[0]?.events ?? [];
},
});
}
90 changes: 49 additions & 41 deletions packages/cli/tests/repl-agent-journey.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { beforeAll, describe, it } from "@executablemd/test-support/bdd";
import { expect } from "@executablemd/test-support/expect";
import { scoped, sleep, spawn, suspend, until as untilResolved, withResolvers } from "effection";
import type { Operation } from "effection";
import { useTempFileCompiler } from "@executablemd/core";
import { INLINE_SOURCE_PATH, useTempFileCompiler } from "@executablemd/core";
import { captureReplEntry } from "./fixtures/repl/failure-journal.ts";
import { ensureDir, writeTextFile } from "@effectionx/fs";
import { useTempDirectory } from "@executablemd/test-support/temp";
import { InMemoryStream } from "@executablemd/durable-streams";
Expand Down Expand Up @@ -609,48 +610,55 @@ describe("A2–A5 — the selected REPL component environment", () => {
expect(reached).toEqual([]);
});

it("A3: preflight and execution select the same collision in either directory order", function* () {
const collision =
"A3: preflight and execution select the same collision in either directory order";
it(collision, function* () {
const fixture = yield* includeWorkspace();
for (const which of ["First", "Second"] satisfies readonly ("First" | "Second")[]) {
yield* scoped(function* () {
const relativeFirst = relative(yield* cwd(), fixture.first);
const includes =
which === "First" ? [relativeFirst, fixture.second] : [fixture.second, relativeFirst];
const fake = createFakeAcp();
const profile = yield* selectedProfile(includes, fixture.root, fake);
const stream = new InMemoryStream();
const options = {
execution: { id: `include-${which}`, stream },
includes: profile.includes,
installations: profile.installations,
generated: profile.generated,
};
const wrong = which === "First" ? "Second" : "First";
const refused = yield* submitReplEntry({
...options,
source: `<Greeting from${wrong}="ok" />`,
});
expect(refused.ok).toBe(false);
expect(yield* stream.readAll()).toEqual([]);
const accepted = yield* submitReplEntry({
...options,
source: `<Greeting from${which}="ok" />`,
});
if (!accepted.ok) {
throw accepted.error;
}
const session = accepted.value;
const result = yield* session.join();
expect(result.ok).toBe(true);
expect(session.model.terminal?.output).toContain(`${which} greeting rendered.`);
const selectedPath = join(
which === "First" ? fixture.first : fixture.second,
"Greeting.md",
);
expect(JSON.stringify(yield* stream.readAll())).toContain(selectedPath);
expect(yield* profile.vocabulary.documentation(["Greeting"])).toContain(selectedPath);
expect(fake.prompts).toEqual([]);
});
yield* captureReplEntry(
{ owner: "packages/cli/tests/repl-agent-journey.test.ts", name: collision },
`include-${which}`,
INLINE_SOURCE_PATH,
function* (execution) {
const relativeFirst = relative(yield* cwd(), fixture.first);
const includes =
which === "First" ? [relativeFirst, fixture.second] : [fixture.second, relativeFirst];
const fake = createFakeAcp();
const profile = yield* selectedProfile(includes, fixture.root, fake);
const stream = execution.stream;
const options = {
execution,
includes: profile.includes,
installations: profile.installations,
generated: profile.generated,
};
const wrong = which === "First" ? "Second" : "First";
const refused = yield* submitReplEntry({
...options,
source: `<Greeting from${wrong}="ok" />`,
});
expect(refused.ok).toBe(false);
expect(yield* stream.readAll()).toEqual([]);
const accepted = yield* submitReplEntry({
...options,
source: `<Greeting from${which}="ok" />`,
});
if (!accepted.ok) {
throw accepted.error;
}
const session = accepted.value;
const result = yield* session.join();
expect(result.ok).toBe(true);
expect(session.model.terminal?.output).toContain(`${which} greeting rendered.`);
const selectedPath = join(
which === "First" ? fixture.first : fixture.second,
"Greeting.md",
);
expect(JSON.stringify(yield* stream.readAll())).toContain(selectedPath);
expect(yield* profile.vocabulary.documentation(["Greeting"])).toContain(selectedPath);
expect(fake.prompts).toEqual([]);
},
);
}
});

Expand Down
172 changes: 98 additions & 74 deletions packages/cli/tests/repl-entries.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import { beforeAll, describe, it } from "@executablemd/test-support/bdd";
import { expect } from "@executablemd/test-support/expect";
import { captureReplEntry } from "./fixtures/repl/failure-journal.ts";
import {
collect,
Execution,
Expand Down Expand Up @@ -114,6 +115,8 @@ import { useReplTree } from "../src/repl/reconcile.ts";
import type { ReplTree } from "../src/repl/reconcile.ts";

/** One entry that publishes two root values and renders one of them. */
const OWNER = "packages/cli/tests/repl-entries.test.ts";

const FIRST = [
"```js eval",
'const token = "alpha";',
Expand Down Expand Up @@ -1252,43 +1255,57 @@ function* countPerformed(): Operation<Performed> {
describe("REPL entries: one session, one entry task, in turn", () => {
beforeAll(() => useTempFileCompiler());

it("EL1: the first entry starts exactly one task", function* () {
const holder = replExecution();
yield* scoped(function* () {
const session = opened(yield* submitReplEntry({ execution: holder, source: FIRST }));
yield* session.join();
const firstTask = "EL1: the first entry starts exactly one task";
it(firstTask, () =>
captureReplEntry(
{ owner: OWNER, name: firstTask },
"entries",
INLINE_SOURCE_PATH,
function* (holder) {
yield* scoped(function* () {
const session = opened(yield* submitReplEntry({ execution: holder, source: FIRST }));
yield* session.join();

expect(session.model.entries.map((entry) => entry.key)).toEqual(["entry-1"]);
expect(session.model.settled).toBe(true);
expect(session.live).toBe(false);
});
expect(started(yield* holder.stream.readAll())).toBe(1);
});
expect(session.model.entries.map((entry) => entry.key)).toEqual(["entry-1"]);
expect(session.model.settled).toBe(true);
expect(session.live).toBe(false);
});
expect(started(yield* holder.stream.readAll())).toBe(1);
},
),
);

it("EL1: a submission while an entry is running refuses and starts nothing", function* () {
const holder = replExecution();
yield* scoped(function* () {
const session = opened(yield* submitReplEntry({ execution: holder, source: ASKS }));
const question = yield* asking(session);
const held = yield* holder.stream.readAll();
const busySubmission = "EL1: a submission while an entry is running refuses and starts nothing";
it(busySubmission, () =>
captureReplEntry(
{ owner: OWNER, name: busySubmission },
"entries",
INLINE_SOURCE_PATH,
function* (holder) {
yield* scoped(function* () {
const session = opened(yield* submitReplEntry({ execution: holder, source: ASKS }));
const question = yield* asking(session);
const held = yield* holder.stream.readAll();

const error = refusedSubmission(yield* session.submit(PLAIN));
// Named for the entry in the way, rather than for which of the two
// conditions fired: what this row claims is that a submission arriving
// while an entry runs refuses and starts nothing.
expect(error.name).toBe("ReplLifecycleError");
expect(error.message).toContain("entry-1");
// Nothing started: the file has not moved, no second root was admitted, and
// the question this entry is waiting on is the one it was waiting on.
expect(yield* holder.stream.readAll()).toEqual(held);
expect(started(held)).toBe(1);
expect(session.overlay.question).toBe(question);
const error = refusedSubmission(yield* session.submit(PLAIN));
// Named for the entry in the way, rather than for which of the two
// conditions fired: what this row claims is that a submission arriving
// while an entry runs refuses and starts nothing.
expect(error.name).toBe("ReplLifecycleError");
expect(error.message).toContain("entry-1");
// Nothing started: the file has not moved, no second root was admitted, and
// the question this entry is waiting on is the one it was waiting on.
expect(yield* holder.stream.readAll()).toEqual(held);
expect(started(held)).toBe(1);
expect(session.overlay.question).toBe(question);

question.submit({ decision: "go" });
yield* session.join();
});
expect(started(yield* holder.stream.readAll())).toBe(1);
});
question.submit({ decision: "go" });
yield* session.join();
});
expect(started(yield* holder.stream.readAll())).toBe(1);
},
),
);

it("EL1: terminal and unjoined still refuses; the join lets the next one start", function* () {
const holder = replExecution();
Expand Down Expand Up @@ -1487,50 +1504,57 @@ describe("REPL entries: one session, one entry task, in turn", () => {
});
});

it("EL1: teardown racing a submission starts no task and joins the one running", function* () {
const holder = replExecution();
const entered = gate();
const release = gate();
// A child of this row's own scope, so the session it holds runs under the
// same compiler and host the rest of the suite does. Teardown is then this
// row's to begin, which is the whole point.
const [scope, dispose] = createScope(yield* useScope());
const held = withResolvers<ReplSession>();
try {
scope.run(function* () {
const session = opened(
yield* submitReplEntry({
execution: holder,
source: ASKS,
installations: [holdingTeardown(entered, release)],
}),
);
held.resolve(session);
yield* suspend();
});
const session = yield* held.operation;
yield* asking(session);
const before = yield* holder.stream.readAll();
const teardownRace = "EL1: teardown racing a submission starts no task and joins the one running";
it(teardownRace, () =>
captureReplEntry(
{ owner: OWNER, name: teardownRace },
"entries",
INLINE_SOURCE_PATH,
function* (holder) {
const entered = gate();
const release = gate();
// A child of this row's own scope, so the session it holds runs under the
// same compiler and host the rest of the suite does. Teardown is then this
// row's to begin, which is the whole point.
const [scope, dispose] = createScope(yield* useScope());
const held = withResolvers<ReplSession>();
try {
scope.run(function* () {
const session = opened(
yield* submitReplEntry({
execution: holder,
source: ASKS,
installations: [holdingTeardown(entered, release)],
}),
);
held.resolve(session);
yield* suspend();
});
const session = yield* held.operation;
yield* asking(session);
const before = yield* holder.stream.readAll();

const tearing = dispose();
// Teardown has reached the running entry's own finalizers, which is as far
// in as anything gets before the task is joined.
yield* awaiting("this session reaching its teardown", entered.opened);
const tearing = dispose();
// Teardown has reached the running entry's own finalizers, which is as far
// in as anything gets before the task is joined.
yield* awaiting("this session reaching its teardown", entered.opened);

const error = refusedSubmission(yield* session.submit(PLAIN));
expect(error.name).toBe("ReplLifecycleError");
expect(yield* holder.stream.readAll()).toEqual(before);
const error = refusedSubmission(yield* session.submit(PLAIN));
expect(error.name).toBe("ReplLifecycleError");
expect(yield* holder.stream.readAll()).toEqual(before);

release.open();
// And the active task is joined, rather than abandoned: observing the
// teardown is what says so.
yield* until(tearing);
expect(started(yield* holder.stream.readAll())).toBe(1);
expect(holder.stream.onAppend).toBe(null);
} finally {
release.open();
}
});
release.open();
// And the active task is joined, rather than abandoned: observing the
// teardown is what says so.
yield* until(tearing);
expect(started(yield* holder.stream.readAll())).toBe(1);
expect(holder.stream.onAppend).toBe(null);
} finally {
release.open();
}
},
),
);

it("EL1: an append the journal refuses opens no successor and mounts no task", function* () {
const stream = new InMemoryStream();
Expand Down
21 changes: 2 additions & 19 deletions packages/cli/tests/repl-execution.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { join } from "node:path";
import process from "node:process";
import { Writable } from "node:stream";
import { partitionEntrySegments, ROOT_IMPORT } from "../src/repl/entries.ts";
import { captureTestJournal } from "@executablemd/test-support/failure-journal";
import { captureReplEntry } from "./fixtures/repl/failure-journal.ts";
import type { DeliverySink } from "../src/stdout-delivery.ts";

import { useTempDirectory } from "@executablemd/test-support/temp";
Expand Down Expand Up @@ -255,24 +255,7 @@ function captureEntry(
body: (holder: ReplExecution) => Operation<void>,
sink: DeliverySink = process.stderr,
): Operation<void> {
return captureTestJournal(
{ owner: OWNER, suite, name },
source,
(stream) => body({ id: "kf39sla2", stream }),
{
sink,
selectEvents(events) {
const partition = partitionEntrySegments(events);
if (!partition.ok) {
throw partition.error;
}
if (partition.value.length > 1) {
throw new Error("fixture execution holds more than one admitted entry");
}
return partition.value[0]?.events ?? [];
},
},
);
return captureReplEntry({ owner: OWNER, suite, name }, "kf39sla2", source, body, sink);
}

function admitReferenceEntry(
Expand Down
Loading
Loading