Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 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
fc3ff33
Attribute syntax, metadata, and loaded-copy document tests
taras Nov 16, 2026
584a76c
Attribute delete, REPL focus, and evidence publication fixtures
taras Nov 16, 2026
2af3bdc
Attribute fresh named-slot and expansion identity roots
taras Nov 16, 2026
f1bc528
Retain both TX6 journals at the caller artifact root
taras Nov 16, 2026
19ea477
Attribute the remaining guarded generated-selection probes
taras Nov 16, 2026
33635aa
Attribute guarded Evaluate and Syntax loaded-copy tests
taras Nov 16, 2026
8654eaa
Attribute portable CLI composition refusals and filesystem controls
taras Nov 16, 2026
648de6c
Attribute remaining fresh Agent component roots
taras Nov 16, 2026
821f0a9
Attribute fresh Testing, TestAgent and pull request reads
taras Nov 16, 2026
c1c4c76
Capture ACP cancellation and fresh Git scenario sessions
taras Nov 16, 2026
acac641
Capture guarded Agent configuration, routing and usage
taras Nov 16, 2026
e06a09e
Capture File.Delete refusal arms through cumulative checks
taras Nov 16, 2026
b63b72f
Attribute guarded Core filesystem and component cases
taras Nov 16, 2026
41e8657
Attribute paired registration and filesystem roots
taras Nov 16, 2026
61609db
Give each CIV26 delegation variant a fresh journal
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
f9a3639
Merge commit 'b8aa8db95573b84b0319d31d3948625eae7ebaef' into codex/11…
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
a3269bd
Migrate #1362 fresh journal fixtures
taras Nov 17, 2026
b69a0dc
Merge shared failure journal foundation into #1363
taras Nov 17, 2026
903f04b
Merge commit 'b8aa8db95573b84b0319d31d3948625eae7ebaef' into codex/11…
taras 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
d6329f4
test: migrate remaining agent git journal owners
taras Nov 17, 2026
692239c
revert(test): keep native launch outside agent migration
taras Nov 17, 2026
4eee59f
Integrate Luna journal adoption through #1362
taras Nov 17, 2026
09a6184
Carry reviewed parent journal fixes into #1362
taras Nov 17, 2026
0d2a107
Capture journals in every ORC2 suite
taras Nov 17, 2026
58776a3
Adopt the shared journal in filesystem test fixtures
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
5cb31c8
Keep File.Delete test declarations direct
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
c37cfc4
Carry direct declarations through the #1362 stack
taras Nov 17, 2026
eef2444
Preserve the scoped #1363 integration checkpoint
taras Nov 17, 2026
a510f75
Integrate direct test declarations through journal ownership
taras Nov 17, 2026
98ea279
Acquire journals in ordinary filesystem and component tests
taras Nov 17, 2026
77e515f
Integrate the reviewed journal stack for filesystem tests
taras Nov 17, 2026
ebe3241
Record the actual halted document source in RV12 journals
taras Nov 17, 2026
df5ce08
Capture failure journals for Agent, Testing and Git test owners
taras Nov 17, 2026
a0c7025
Preserve #1365 scope after rebasing #1363
taras Nov 17, 2026
97ad98e
Capture failure journals for Agent, Testing and Git test owners
taras Nov 17, 2026
92acb3f
Merge commit 'refs/backup/journal-rebase-1363-1365-20261118/user-1363…
taras Nov 18, 2026
d414f03
Merge commit 'refs/backup/journal-rebase-1363-1365-20261118/main-495'…
taras Nov 18, 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
118 changes: 75 additions & 43 deletions packages/core/tests/component-registration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ import { useComponentModuleLoader } from "@executablemd/test-support/host";
* cases go through `execute()` so what they assert is what a document gets.
*/

import { describe, it } from "@executablemd/test-support/bdd";
import { beforeEach, describe, it } from "@executablemd/test-support/bdd";
import {
captureTestJournal,
journalBeforeEach,
useJournalStream,
} from "@executablemd/test-support/failure-journal";
import { expect } from "@executablemd/test-support/expect";
import { ensure, resource, scoped, spawn, until } from "effection";
import type { Operation } from "effection";
Expand Down Expand Up @@ -37,9 +42,11 @@ import type {
Json as CoreJson,
} from "../src/types.ts";

const OWNER = "packages/core/tests/component-registration.test.ts";
const NO_PROPS = { type: "object", properties: {}, additionalProperties: false };

/** A directory for one test's files, removed when the test scope closes. */

function useFixture(): Operation<string> {
return resource(function* (provide) {
const dir = yield* until(mkdtemp(join(tmpdir(), "cr-test-")));
Expand Down Expand Up @@ -113,14 +120,16 @@ function* thrown(body: () => Operation<unknown>): Operation<Error | undefined> {
}
}

function run(dir: string, includes: string[] = [dir]): Operation<Json> {
function run(
dir: string,
includes: string[] = [dir],
stream = new InMemoryStream(),
): Operation<Json> {
return scoped(function* () {
// `API.Files` has no host default, and `<TempDir>` is one of the components
// these cases resolve.
yield* useHostFiles();
return yield* collect(
yield* execute({ path: join(dir, "doc.md"), stream: new InMemoryStream(), includes }),
);
return yield* collect(yield* execute({ path: join(dir, "doc.md"), stream, includes }));
});
}

Expand Down Expand Up @@ -513,16 +522,19 @@ describe("Tier CR — installation order never decides", () => {
});

describe("Tier CR — what a document gets", () => {
beforeEach(journalBeforeEach(OWNER));
it("CR22: a repository component replaces one of core's, end to end", function* () {
const dir = yield* useFixture();
const stream = yield* useJournalStream(join(dir, "doc.md"));
yield* writeTextFile(join(dir, "doc.md"), "<Parse>ignored</Parse>\n");
yield* writeTextFile(join(dir, "Parse.md"), "MINE\n");

expect(String(yield* run(dir))).toContain("MINE");
expect(String(yield* run(dir, undefined, stream))).toContain("MINE");
});

it("CR22b: a repository Json.md replaces core's serializer, `as` and all", function* () {
const dir = yield* useFixture();
const stream = yield* useJournalStream(join(dir, "doc.md"));
// `as` is the engine's, so the override takes it the way every text
// component does: what it rendered is captured and read back later.
yield* writeTextFile(
Expand All @@ -541,7 +553,7 @@ describe("Tier CR — what a document gets", () => {
// The override's own rendering keeps the line structure a Markdown
// component produces, so the marker and the word are matched together
// rather than spelled as one literal.
const rendered = String(yield* run(dir));
const rendered = String(yield* run(dir, undefined, stream));
expect(rendered).toMatch(/CAPTURED:\s*MINE/);
expect(rendered).not.toContain("serialized");
});
Expand All @@ -551,6 +563,7 @@ describe("Tier CR — what a document gets", () => {
// prop JSON boundary exactly as any other component's would.
it("CR22c: an override crosses the ordinary prop boundary, absence and all", function* () {
const dir = yield* useFixture();
const stream = yield* useJournalStream(join(dir, "doc.md"));
yield* writeTextFile(join(dir, "doc.md"), "<Json value={undefined} />\n");
// `required` is what makes this discriminating: on the ordinary boundary
// this operand is an absence, so the required check is what answers it. A
Expand All @@ -573,7 +586,7 @@ describe("Tier CR — what a document gets", () => {
// capture is handed the authored `undefined`. The override is handed the
// ordinary reading of the same text, where `undefined` means the prop is
// not there — the behavior every non-capturing component has (§6.5).
const rendered = yield* reportOf(() => run(dir));
const rendered = yield* reportOf(() => run(dir, undefined, stream));
expect(rendered).toContain("value");
expect(rendered).toContain("required");
expect(rendered).not.toContain("no JSON text");
Expand All @@ -582,6 +595,7 @@ describe("Tier CR — what a document gets", () => {

it("CR22d: a repository CodeBlock.md replaces core's fence, end to end", function* () {
const dir = yield* useFixture();
const stream = yield* useJournalStream(join(dir, "doc.md"));
yield* writeTextFile(join(dir, "doc.md"), '<CodeBlock value="fenced" />\n');
// `value` is an ordinary prop on both sides, so the override receives the
// same string core's registration would have been handed. Nothing about
Expand All @@ -595,38 +609,45 @@ describe("Tier CR — what a document gets", () => {

// Core's own would have wrapped the string in a fence; the override writes
// it bare, so the output says which one ran and what it was given.
const rendered = String(yield* run(dir));
const rendered = String(yield* run(dir, undefined, stream));
expect(rendered).toContain("OVERRIDE:fenced");
expect(rendered).not.toContain("```");
});

it("CR23: a broken local component fails instead of falling back to core's", function* () {
const brokenLocal = "CR23: a broken local component fails instead of falling back to core's";
it(brokenLocal, function* () {
const dir = yield* useFixture();
// Core's <TempDir> renders its content, so a fall-through would succeed
// visibly. That is what makes the failure below meaningful.
yield* writeTextFile(join(dir, "doc.md"), "<TempDir>VISIBLE</TempDir>\n");
yield* writeTextFile(join(dir, "TempDir.md"), "unbroken\n");
expect(String(yield* run(dir))).toContain("unbroken");

// Present, and unusable: the schema is not a schema.
yield* writeTextFile(
join(dir, "TempDir.md"),
["---", "props:", " type: object", " properties: 7", "---", "", "unbroken"].join("\n"),
);
const testCase = { owner: OWNER, name: brokenLocal };
yield* captureTestJournal(testCase, join(dir, "doc.md"), function* (stream) {
// Core's <TempDir> renders its content, so a fall-through would succeed
// visibly. That is what makes the failure below meaningful.
yield* writeTextFile(join(dir, "doc.md"), "<TempDir>VISIBLE</TempDir>\n");
yield* writeTextFile(join(dir, "TempDir.md"), "unbroken\n");
expect(String(yield* run(dir, undefined, stream))).toContain("unbroken");

// Present, and unusable: the schema is not a schema.
yield* writeTextFile(
join(dir, "TempDir.md"),
["---", "props:", " type: object", " properties: 7", "---", "", "unbroken"].join("\n"),
);

const output = yield* reportOf(() => run(dir));
expect(output).toContain("properties");
// Neither the broken component's body nor core's component ran.
expect(output).not.toContain("unbroken");
expect(output).not.toContain("VISIBLE");
yield* captureTestJournal(testCase, join(dir, "doc.md"), function* (secondStream) {
const output = yield* reportOf(() => run(dir, undefined, secondStream));
expect(output).toContain("properties");
// Neither the broken component's body nor core's component ran.
expect(output).not.toContain("unbroken");
expect(output).not.toContain("VISIBLE");
});
});
});

it("CR24: a structural name is not satisfied by a file named after it", function* () {
const dir = yield* useFixture();
const stream = yield* useJournalStream(join(dir, "doc.md"));
yield* writeTextFile(join(dir, "doc.md"), "<Content />\n");
yield* writeTextFile(join(dir, "Content.md"), "SHOULD NOT RENDER\n");

const output = yield* reportOf(() => run(dir));
const output = yield* reportOf(() => run(dir, undefined, stream));
expect(output).not.toContain("SHOULD NOT RENDER");
expect(output).toContain("reserved");
});
Expand All @@ -637,6 +658,7 @@ describe("Tier CR — what a document gets", () => {
// which is what no syntax or validation row can show.
it("CR24c: a repository Terminal.Grid.md and Terminal.md each run their own body", function* () {
const dir = yield* useFixture();
const stream = yield* useJournalStream(join(dir, "doc.md"));
yield* writeTextFile(
join(dir, "doc.md"),
'<Terminal.Grid columns={2}>\n<Terminal title="Agent" />\n</Terminal.Grid>\n',
Expand All @@ -660,7 +682,7 @@ describe("Tier CR — what a document gets", () => {
["---", "props:", " title: { type: string }", "---", "", "PANE:{props.title}"].join("\n"),
);

const rendered = String(yield* run(dir));
const rendered = String(yield* run(dir, undefined, stream));
// Each definition's own body, with its own props: the grid laid nothing
// out and the pane opened nothing — they are Markdown components.
expect(rendered).toContain("GRID:2");
Expand All @@ -669,6 +691,7 @@ describe("Tier CR — what a document gets", () => {

it("CR24d: a registration may claim both names, and its own fn answers", function* () {
const dir = yield* useFixture();
const stream = yield* useJournalStream(join(dir, "doc.md"));
yield* writeTextFile(join(dir, "doc.md"), "<Terminal.Grid />\n\n<Terminal />\n");

const rendered = yield* scoped(function* () {
Expand All @@ -681,7 +704,7 @@ describe("Tier CR — what a document gets", () => {
yield* collect(
yield* execute({
path: join(dir, "doc.md"),
stream: new InMemoryStream(),
stream,
includes: [dir],
}),
),
Expand All @@ -701,20 +724,29 @@ describe("Tier CR — what a document gets", () => {
// The search path has to be *relative* for this to bite: an absolute one is
// used verbatim and never consults a working directory at all, which is why
// the fixture lives under the process's own directory.
it("CR24b: a relative repository component loads inside a rebound cwd", function* () {
yield* useComponentModuleLoader();
const dir = yield* useLocalFixture();
yield* writeTextFile(join(dir, "doc.md"), "<TempDir>\n<Widget />\n</TempDir>\n");
yield* writeTextFile(
join(dir, "Widget.ts"),
[
"export const props = { type: 'object', properties: {}, additionalProperties: false };",
"export default function*() { return 'LOADED'; }",
].join("\n"),
);

expect(String(yield* run(dir))).toContain("LOADED");
});
{
const caseName = "CR24b: a relative repository component loads inside a rebound cwd";
it(caseName, function* () {
yield* useComponentModuleLoader();
const dir = yield* useLocalFixture();
yield* captureTestJournal(
{ owner: OWNER, name: caseName },
join(dir, "doc.md"),
function* (stream) {
yield* writeTextFile(join(dir, "doc.md"), "<TempDir>\n<Widget />\n</TempDir>\n");
yield* writeTextFile(
join(dir, "Widget.ts"),
[
"export const props = { type: 'object', properties: {}, additionalProperties: false };",
"export default function*() { return 'LOADED'; }",
].join("\n"),
);

expect(String(yield* run(dir, undefined, stream))).toContain("LOADED");
},
);
});
}
});

describe("Tier CR — inspection describes without running", () => {
Expand Down
Loading
Loading