We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f01ac2 commit 13b769aCopy full SHA for 13b769a
test/alias.js
@@ -64,6 +64,14 @@ describe("alias", function () {
64
.resolveSync({}, "/", "aliasA/dir/index")
65
.should.be.eql("/a/dir/index");
66
});
67
+ it('should resolve "#" alias', () => {
68
+ resolver.resolveSync({}, "/", "#").should.be.eql("/c/dir/index");
69
+ resolver.resolveSync({}, "/", "#/index").should.be.eql("/c/dir/index");
70
+ });
71
+ it('should resolve "@" alias', () => {
72
+ resolver.resolveSync({}, "/", "@").should.be.eql("/c/dir/index");
73
+ resolver.resolveSync({}, "/", "@/index").should.be.eql("/c/dir/index");
74
75
it("should resolve an ignore module", () => {
76
resolver.resolveSync({}, "/", "ignored").should.be.eql(false);
77
0 commit comments