Skip to content

Commit 311eaeb

Browse files
authored
fix(compiler): make sure LanguageService updated with test file information before getting diagnostics for test file (#1507)
1 parent 3279511 commit 311eaeb

9 files changed

Lines changed: 492 additions & 104 deletions

File tree

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
import { Thing } from "./main";
1+
import { foo, Thing } from './main';
22

33
export const thing: Thing = { a: 1 };
44

5-
function doTheThing() {
6-
return 1 + 2;
7-
}
8-
9-
it("should do the thing", () => {
10-
expect(doTheThing()).toEqual(3);
5+
test('foo is 42', () => {
6+
expect(foo).toBe(42);
117
});

e2e/__cases__/diagnostics/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
export const foo = 42
12
export type Thing = { a: number, b: number }

0 commit comments

Comments
 (0)