Skip to content

Commit

Permalink
Reset builder status on each test
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Mar 12, 2024
1 parent e34c8ff commit 0b24c1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/suites/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ export function sleep(ms: number) {
export async function reset() {
await vscode.commands.executeCommand('workbench.action.closeAllEditors')
await Promise.all(Object.values(lw.cache.promises))
lw.compile.lastSteps = []
lw.compile.lastBuildTime = 0
lw.compile.compiledPDFPath = ''
lw.compile.compiledPDFWriting = 0
lw.root.file.path = undefined
lw.root.subfiles.path = undefined
lw.completion.input.reset()
Expand Down

0 comments on commit 0b24c1a

Please sign in to comment.