Skip to content

Commit df50ab7

Browse files
committed
Move to separate test with skip reason
1 parent 20eb7be commit df50ab7

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

library/agent/hooks/isBuiltinModule.test.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,17 @@ t.test("it works", async (t) => {
99
t.equal(isBuiltinModule("node:http"), true);
1010
t.equal(isBuiltinModule("test"), false);
1111
t.equal(isBuiltinModule(""), false);
12-
if (getMajorNodeVersion() >= 24) {
12+
});
13+
14+
t.test(
15+
"it works with node:sqlite",
16+
{
17+
skip:
18+
getMajorNodeVersion() < 24
19+
? "node:sqlite is not available in older Node.js versions"
20+
: undefined,
21+
},
22+
async (t) => {
1323
t.equal(isBuiltinModule("node:sqlite"), true);
1424
}
15-
});
25+
);

0 commit comments

Comments
 (0)