Skip to content

Commit 50bb830

Browse files
test(config-format): update typescript-auto to reflect esbuild fallback behavior
1 parent db6d601 commit 50bb830

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

test/build/config-format/typescript-auto/typescript.test.mjs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,8 @@ describe("typescript configuration", () => {
2626
});
2727

2828
/* eslint-disable jest/no-standalone-expect */
29-
30-
if (major >= 22) {
31-
// No `type` in `the package.json` but Node.js support `require` ECMA modules
32-
expect(stderr).toContain(
33-
"Reparsing as ES module because module syntax was detected. This incurs a performance overhead.",
34-
);
35-
} else {
36-
expect(stderr).toBeFalsy();
37-
}
29+
// esbuild handles transpilation cleanly — no Node.js "Reparsing" warning.
30+
expect(stderr).toBeFalsy();
3831

3932
expect(stdout).toBeTruthy();
4033
expect(exitCode).toBe(0);

0 commit comments

Comments
 (0)