Skip to content

Commit

Permalink
Merge pull request jest-community#169 from BBB/patch-1
Browse files Browse the repository at this point in the history
assertionsForTestFile can return null
  • Loading branch information
orta authored Nov 15, 2017
2 parents c60186b + 78a3f29 commit 0dae7b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JestExt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export class JestExt {
private updateDotDecorators(editor: vscode.TextEditor) {
const filePath = editor.document.uri.fsPath
const { itBlocks } = this.parseTestFile(filePath)
const assertions = this.reconciler.assertionsForTestFile(filePath)
const assertions = this.reconciler.assertionsForTestFile(filePath) || []
const { successes, fails, skips, unknowns, inlineErrors } = this.sortDecorationBlocks(
itBlocks,
assertions,
Expand Down

0 comments on commit 0dae7b5

Please sign in to comment.