Skip to content

Commit 1ff53b0

Browse files
committed
fix: test with new baseline
1 parent 153711c commit 1ff53b0

File tree

4 files changed

+5
-69
lines changed

4 files changed

+5
-69
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
1-
tests/cases/compiler/user.ts(3,15): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './z' instead.
1+
tests/cases/compiler/user.ts(1,15): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './z' instead.
22

33

4-
==== tests/cases/compiler/x.ts (0 errors) ====
5-
export default 0;
6-
7-
==== tests/cases/compiler/y.tsx (0 errors) ====
8-
export default 0;
9-
104
==== tests/cases/compiler/z.d.ts (0 errors) ====
115
declare const x: number;
126
export default x;
137

148
==== tests/cases/compiler/user.ts (1 errors) ====
15-
import x from "./x.ts";
16-
import y from "./y.tsx";
179
import z from "./z.d.ts";
1810
~~~~~~~~~~
1911
!!! error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './z' instead.
2012

2113
// Making sure the suggested fixes are valid:
22-
import x2 from "./x";
23-
import y2 from "./y";
2414
import z2 from "./z";
2515

Original file line numberDiff line numberDiff line change
@@ -1,34 +1,16 @@
11
//// [tests/cases/compiler/moduleResolutionNoTs.ts] ////
22

3-
//// [x.ts]
4-
export default 0;
5-
6-
//// [y.tsx]
7-
export default 0;
8-
93
//// [z.d.ts]
104
declare const x: number;
115
export default x;
126

137
//// [user.ts]
14-
import x from "./x.ts";
15-
import y from "./y.tsx";
168
import z from "./z.d.ts";
179

1810
// Making sure the suggested fixes are valid:
19-
import x2 from "./x";
20-
import y2 from "./y";
2111
import z2 from "./z";
2212

2313

24-
//// [x.js]
25-
"use strict";
26-
exports.__esModule = true;
27-
exports["default"] = 0;
28-
//// [y.jsx]
29-
"use strict";
30-
exports.__esModule = true;
31-
exports["default"] = 0;
3214
//// [user.js]
3315
"use strict";
3416
exports.__esModule = true;
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,15 @@
1-
=== tests/cases/compiler/x.ts ===
2-
export default 0;
3-
No type information for this code.
4-
No type information for this code.=== tests/cases/compiler/y.tsx ===
5-
export default 0;
6-
No type information for this code.
7-
No type information for this code.=== tests/cases/compiler/z.d.ts ===
1+
=== tests/cases/compiler/z.d.ts ===
82
declare const x: number;
93
>x : Symbol(x, Decl(z.d.ts, 0, 13))
104

115
export default x;
126
>x : Symbol(x, Decl(z.d.ts, 0, 13))
137

148
=== tests/cases/compiler/user.ts ===
15-
import x from "./x.ts";
16-
>x : Symbol(x, Decl(user.ts, 0, 6))
17-
18-
import y from "./y.tsx";
19-
>y : Symbol(y, Decl(user.ts, 1, 6))
20-
219
import z from "./z.d.ts";
22-
>z : Symbol(z, Decl(user.ts, 2, 6))
10+
>z : Symbol(z, Decl(user.ts, 0, 6))
2311

2412
// Making sure the suggested fixes are valid:
25-
import x2 from "./x";
26-
>x2 : Symbol(x2, Decl(user.ts, 5, 6))
27-
28-
import y2 from "./y";
29-
>y2 : Symbol(y2, Decl(user.ts, 6, 6))
30-
3113
import z2 from "./z";
32-
>z2 : Symbol(z2, Decl(user.ts, 7, 6))
14+
>z2 : Symbol(z2, Decl(user.ts, 3, 6))
3315

Original file line numberDiff line numberDiff line change
@@ -1,33 +1,15 @@
1-
=== tests/cases/compiler/x.ts ===
2-
export default 0;
3-
No type information for this code.
4-
No type information for this code.=== tests/cases/compiler/y.tsx ===
5-
export default 0;
6-
No type information for this code.
7-
No type information for this code.=== tests/cases/compiler/z.d.ts ===
1+
=== tests/cases/compiler/z.d.ts ===
82
declare const x: number;
93
>x : number
104

115
export default x;
126
>x : number
137

148
=== tests/cases/compiler/user.ts ===
15-
import x from "./x.ts";
16-
>x : 0
17-
18-
import y from "./y.tsx";
19-
>y : 0
20-
219
import z from "./z.d.ts";
2210
>z : any
2311

2412
// Making sure the suggested fixes are valid:
25-
import x2 from "./x";
26-
>x2 : 0
27-
28-
import y2 from "./y";
29-
>y2 : 0
30-
3113
import z2 from "./z";
3214
>z2 : number
3315

0 commit comments

Comments
 (0)