Skip to content

Commit bba8e74

Browse files
Andymhegazy
authored andcommitted
Fix path in importDeclTypes.ts test (#15992)
1 parent aaeb565 commit bba8e74

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/baselines/reference/importDeclTypes.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/compiler/a.ts(1,21): error TS6137: Cannot import type declaration files. Consider importing 'foo-bar' instead of '@types/foo-bar'.
1+
/a.ts(1,21): error TS6137: Cannot import type declaration files. Consider importing 'foo-bar' instead of '@types/foo-bar'.
22

33

44
==== /node_modules/@types/foo-bar/index.d.ts (0 errors) ====
@@ -7,7 +7,7 @@ tests/cases/compiler/a.ts(1,21): error TS6137: Cannot import type declaration fi
77
}
88

99
// This should error
10-
==== tests/cases/compiler/a.ts (1 errors) ====
10+
==== /a.ts (1 errors) ====
1111
import { Foo } from "@types/foo-bar";
1212
~~~~~~~~~~~~~~~~
1313
!!! error TS6137: Cannot import type declaration files. Consider importing 'foo-bar' instead of '@types/foo-bar'.

tests/cases/compiler/importDeclTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ export interface Foo {
55
}
66

77
// This should error
8-
// @filename: a.ts
8+
// @filename: /a.ts
99
import { Foo } from "@types/foo-bar";

0 commit comments

Comments
 (0)