Skip to content

Commit b0421ff

Browse files
committed
Add second test
1 parent 8571c63 commit b0421ff

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/// <reference path="../fourslash.ts" />
2+
3+
// @Filename: /apps/app1/tsconfig.json
4+
//// {
5+
//// "compilerOptions": {
6+
//// "module": "commonjs",
7+
//// "paths": {
8+
//// "shared/*": ["../../shared/*"]
9+
//// }
10+
//// },
11+
//// "include": ["src", "../../shared"]
12+
//// }
13+
14+
// @Filename: /apps/app1/src/index.ts
15+
//// shared/*internal2external*/
16+
17+
// @Filename: /apps/app1/src/app.ts
18+
//// utils/*internal2internal*/
19+
20+
// @Filename: /apps/app1/src/utils.ts
21+
//// export const utils = 0;
22+
23+
// @Filename: /shared/constants.ts
24+
//// export const shared = 0;
25+
26+
// @Filename: /shared/data.ts
27+
//// shared/*external2external*/
28+
29+
format.setOption("newline", "\n");
30+
31+
goTo.marker("internal2external");
32+
verify.importFixAtPosition([`import { shared } from "shared/constants";\n\nshared`], /*errorCode*/ undefined, {
33+
importModuleSpecifierPreference: "external-non-relative"
34+
});
35+
36+
goTo.marker("internal2internal");
37+
verify.importFixAtPosition([`import { utils } from "./utils";\n\nutils`], /*errorCode*/ undefined, {
38+
importModuleSpecifierPreference: "external-non-relative"
39+
});
40+
41+
goTo.marker("external2external");
42+
verify.importFixAtPosition([`import { shared } from "./constants";\n\nshared`], /*errorCode*/ undefined, {
43+
importModuleSpecifierPreference: "external-non-relative"
44+
});

0 commit comments

Comments
 (0)