Skip to content

Commit a62d62d

Browse files
silverwindclaude
andcommitted
Give the version-layout fixture a module type
The fixture simulates a real package root but omitted `"type": "module"`, so Node 24 and 26 emitted MODULE_TYPELESS_PACKAGE_JSON on stderr and the test's empty-stderr assertion failed. Node 22 does not warn, and a local `--no-warnings` in NODE_OPTIONS hid it outside CI. Co-Authored-By: Claude (Opus 5) <noreply@anthropic.com>
1 parent 75a172a commit a62d62d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ test("version resolves the source and built package layouts", async ({expect = g
466466
const source = await readFile(sourceScript, "utf8");
467467
await Promise.all([
468468
writeFile(join(parentDir, "package.json"), JSON.stringify({version: "wrong"})),
469-
writeFile(join(sourceDir, "package.json"), JSON.stringify({version: "1.2.3"})),
469+
writeFile(join(sourceDir, "package.json"), JSON.stringify({version: "1.2.3", type: "module"})),
470470
writeFile(join(sourceDir, "index.ts"), source),
471471
writeFile(join(distDir, "index.ts"), source),
472472
]);

0 commit comments

Comments
 (0)