File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11import * as t from "tap" ;
22import { isBuiltinModule } from "./isBuiltinModule" ;
3+ import { getMajorNodeVersion } from "../../helpers/getNodeVersion" ;
34
45t . 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} ) ;
Original file line number Diff line number Diff 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-
2318execSync ( `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} ) ;
You can’t perform that action at this time.
0 commit comments