Skip to content

Commit 8b5b6bf

Browse files
fix: CI with Node v23.1.0 (#16932)
Co-authored-by: Nicolò Ribaudo <[email protected]>
1 parent 64fa466 commit 8b5b6bf

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

  • packages/babel-core/test/helpers

packages/babel-core/test/helpers/esm.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,16 @@ async function spawn(runner, filename, cwd = process.cwd()) {
5656
process.execPath,
5757
// pass `cwd` as params as `process.cwd()` will normalize `cwd` on macOS
5858
[require.resolve(`../fixtures/babel-${runner}.mjs`), filename, cwd],
59-
{ cwd, env: process.env },
59+
{
60+
cwd,
61+
env: {
62+
...process.env,
63+
NODE_OPTIONS:
64+
parseInt(process.versions.node) >= 23
65+
? "--disable-warning=ExperimentalWarning"
66+
: "",
67+
},
68+
},
6069
);
6170

6271
const EXPERIMENTAL_WARNING =

0 commit comments

Comments
 (0)