Skip to content

Commit

Permalink
test(resolver): add test for node bultins
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 21, 2024
1 parent 778bd73 commit 58407dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/resolve.test.ts
Expand Up @@ -48,6 +48,12 @@ describe("resolveSync", () => {
});
expect(fileURLToPath(resolved2)).match(/fixture\/test.txt$/);
});

it("resolves node built-ints", () => {
expect(resolveSync("node:fs")).toBe("node:fs");
expect(resolveSync("fs")).toBe("node:fs");
expect(resolveSync("node:foo")).toBe("node:foo");
});
});

describe("resolvePathSync", () => {
Expand Down

0 comments on commit 58407dd

Please sign in to comment.