Skip to content

Commit 9ee314f

Browse files
committed
test: update
1 parent 3a744ca commit 9ee314f

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

test/__snapshots__/fixtures.test.ts.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ Enter Identifier
107107
Enter Literal"
108108
`;
109109
110-
exports[`fixtures > require-esm > stderr 1`] = `[]`;
111-
112110
exports[`fixtures > require-esm > stdout 1`] = `"Works!"`;
113111
114112
exports[`fixtures > require-json > stdout 1`] = `"{ type: 'commonjs' }"`;

test/fixtures.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,10 @@ describe("fixtures", async () => {
7373
},
7474
});
7575

76-
if (
77-
name.includes("error") ||
78-
(nodeMajorVersion >= 22 && name === "require-esm")
79-
) {
76+
if (name.includes("error")) {
8077
expect(extractErrors(cleanUpSnap(stderr))).toMatchSnapshot("stderr");
8178
} else {
82-
// Expect no error by default
83-
expect(stderr).toBe("");
79+
expect(stderr).toBe(""); // Expect no errors by default
8480
}
8581

8682
expect(cleanUpSnap(stdout)).toMatchSnapshot("stdout");

0 commit comments

Comments
 (0)