Skip to content

Commit 58407dd

Browse files
committedFeb 21, 2024·
test(resolver): add test for node bultins
1 parent 778bd73 commit 58407dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎test/resolve.test.ts

+6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ describe("resolveSync", () => {
4848
});
4949
expect(fileURLToPath(resolved2)).match(/fixture\/test.txt$/);
5050
});
51+
52+
it("resolves node built-ints", () => {
53+
expect(resolveSync("node:fs")).toBe("node:fs");
54+
expect(resolveSync("fs")).toBe("node:fs");
55+
expect(resolveSync("node:foo")).toBe("node:foo");
56+
});
5157
});
5258

5359
describe("resolvePathSync", () => {

0 commit comments

Comments
 (0)
Please sign in to comment.