Skip to content

Commit 5c81d2f

Browse files
committed
update
1 parent 51b0f1e commit 5c81d2f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/fixtures/tsconfig-paths/example/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
"outDir": "./js_out",
66
"baseUrl": ".",
77
"paths": {
8-
"@components/*": ["./src/components/*"],
8+
"@components/*": ["./src/utils/*", "./src/components/*"],
99
"foo": ["./src/mapped/foo"],
1010
"bar/*": ["./src/mapped/bar/*"],
1111
"refs/*": ["./src/refs/*"],
1212
"*": ["./src/mapped/star/*", "./src/mapped/longest/one.ts"],
13-
"longest/*": ["./src/mapped/longest/four.ts", "./src/mapped/longest/two.ts"]
13+
"longest/*": ["./src/mapped/longest/four.ts", "./src/mapped/longest/two.ts"],
14+
"longest/bar": ["./src/mapped/longest/three.ts"]
1415
},
1516
"composite": true
1617
}

test/tsconfig-paths.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe("TsconfigPathsPlugin", () => {
6161
if (err) return done(err);
6262
if (!result) return done(new Error("No result"));
6363
expect(result).toEqual(
64-
path.join(exampleDir, "src", "mapped", "longest", "two.ts"),
64+
path.join(exampleDir, "src", "mapped", "longest", "three.ts"),
6565
);
6666
done();
6767
});

0 commit comments

Comments
 (0)