diff --git a/extensions/notebook/src/book/bookTreeView.ts b/extensions/notebook/src/book/bookTreeView.ts index f3d9eb85a8..0416a63109 100644 --- a/extensions/notebook/src/book/bookTreeView.ts +++ b/extensions/notebook/src/book/bookTreeView.ts @@ -328,7 +328,7 @@ export class BookTreeViewProvider implements vscode.TreeDataProvider { + await vscode.commands.executeCommand('workbench.action.closeAllEditors'); + }); + this.afterAll(async function (): Promise { await vscode.commands.executeCommand('workbench.action.closeAllEditors'); }); @@ -109,7 +113,7 @@ describe('notebookUtils Tests', function (): void { sinon.replaceGetter(azdata.nb, 'activeNotebookEditor', () => undefined); await notebookUtils.clearActiveCellOutput(); should(showErrorMessageSpy.calledOnce).be.true('showErrorMessage should be called exactly once'); -}); + }); it('does not show error when notebook visible', async function (): Promise { let mockNotebookEditor = TypeMoq.Mock.ofType();