Skip to content

Commit

Permalink
Fix tests in Node v23
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Nov 25, 2024
1 parent e411408 commit 83f6b03
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/run-tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,16 @@ if (process.env.CI) {
}

// Enable the `--experimental-sqlite` flag for Node.js ^22.5.0
if (major === 22 && minor >= 5) {
if ((major === 22 && minor >= 5) || major === 23) {
args += " --node-arg=--experimental-sqlite --node-arg=--no-warnings";
}

execSync(`tap ${args}`, {
stdio: "inherit",
env: { ...process.env, AIKIDO_CI: "true" },
env: {
...process.env,
AIKIDO_CI: "true",
// In v23 some sub-dependencies are calling require on a esm module triggering an experimental warning
NODE_OPTIONS: major === 23 ? "--disable-warning=ExperimentalWarning" : "",
},
});

0 comments on commit 83f6b03

Please sign in to comment.