Skip to content

Commit 3be4071

Browse files
committed
Remove --experimental-sqlite
1 parent 52f58c4 commit 3be4071

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

library/agent/hooks/isBuiltinModule.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as t from "tap";
22
import { isBuiltinModule } from "./isBuiltinModule";
3+
import { getMajorNodeVersion } from "../../helpers/getNodeVersion";
34

45
t.test("it works", async (t) => {
56
t.equal(isBuiltinModule("fs"), true);
@@ -8,4 +9,7 @@ t.test("it works", async (t) => {
89
t.equal(isBuiltinModule("node:http"), true);
910
t.equal(isBuiltinModule("test"), false);
1011
t.equal(isBuiltinModule(""), false);
12+
if (getMajorNodeVersion() >= 24) {
13+
t.equal(isBuiltinModule("node:sqlite"), true);
14+
}
1115
});

scripts/run-tap.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,12 @@ if (process.env.CI) {
1515
args += " --coverage-report=lcov";
1616
}
1717

18-
// Enable the `--experimental-sqlite` flag for Node.js ^22.5.0
19-
if ((major === 22 && minor >= 5) || major === 23) {
20-
args += " --node-arg=--experimental-sqlite --node-arg=--no-warnings";
21-
}
22-
2318
execSync(`tap ${args}`, {
2419
stdio: "inherit",
2520
env: {
2621
...process.env,
2722
AIKIDO_CI: "true",
2823
// In v23 some sub-dependencies are calling require on a esm module triggering an experimental warning
29-
NODE_OPTIONS: major === 23 ? "--disable-warning=ExperimentalWarning" : "",
24+
NODE_OPTIONS: major === 24 ? "--disable-warning=ExperimentalWarning" : "",
3025
},
3126
});

0 commit comments

Comments
 (0)