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 24b3c60 commit 44a2603Copy full SHA for 44a2603
test/fallback.test.js
@@ -8,7 +8,8 @@ describe("fallback", function () {
8
const fileSystem = Volume.fromJSON(
9
{
10
"/a/index": "",
11
- "/a/dir/index": "",
+ "/a/dir/index": "",
12
+ "/a/second/index": "",
13
"/recursive/index": "",
14
"/recursive/dir/index": "",
15
"/recursive/dir/file": "",
@@ -94,6 +95,11 @@ describe("fallback", function () {
94
95
expect(resolver.resolveSync({}, "/", "multiAlias/anotherDir")).toBe(
96
"/e/anotherDir/index"
97
);
98
+ // The multiAlias works as expected when the matching alias is the last one
99
+ expect(resolver.resolveSync({}, "/", "multiAlias/second")).toBe(
100
+ "/a/second/index"
101
+ );
102
+
103
});
104
it("should log the correct info", done => {
105
const log = [];
0 commit comments