Skip to content

Commit

Permalink
fix(compiler): make sure LanguageService updated with test file inf…
Browse files Browse the repository at this point in the history
…ormation before getting diagnostics for test file (#1507)
  • Loading branch information
ahnpnl authored Apr 7, 2020
1 parent 3279511 commit 311eaeb
Show file tree
Hide file tree
Showing 9 changed files with 492 additions and 104 deletions.
10 changes: 3 additions & 7 deletions e2e/__cases__/diagnostics/main.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { Thing } from "./main";
import { foo, Thing } from './main';

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

function doTheThing() {
return 1 + 2;
}

it("should do the thing", () => {
expect(doTheThing()).toEqual(3);
test('foo is 42', () => {
expect(foo).toBe(42);
});
1 change: 1 addition & 0 deletions e2e/__cases__/diagnostics/main.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export const foo = 42
export type Thing = { a: number, b: number }
Loading

0 comments on commit 311eaeb

Please sign in to comment.