-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(compiler): make sure
LanguageService
updated with test file inf…
…ormation before getting diagnostics for test file (#1507)
- Loading branch information
Showing
9 changed files
with
492 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export const foo = 42 | ||
export type Thing = { a: number, b: number } |
Oops, something went wrong.