diff --git a/src/JestExt.ts b/src/JestExt.ts index aa85129e6..4078e8cb9 100644 --- a/src/JestExt.ts +++ b/src/JestExt.ts @@ -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,