Skip to content

Commit fc4c453

Browse files
author
Sebastian Provenzano
committed
fix path 3, the final path
1 parent dc1ed47 commit fc4c453

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test/commands.lsp.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ import * as vscode from 'vscode';
1212
suite('Commands, LSP Test Suite', () => {
1313
let dbPath: string;
1414
suiteTeardown(async () => {
15-
const root = vscode.workspace.workspaceFolders?.[0].uri.fsPath;
16-
dbPath = root
17-
? path.join(root!, '..', '..', '.vscode-test', 'db', 'imandrax.sqlite')
18-
: await fs.mkdtemp(path.join(os.tmpdir(), 'imandrax-'));;
15+
const root = vscode.workspace.workspaceFolders?.[0].uri.fsPath
16+
?? await fs.mkdtemp(path.join(os.tmpdir(), 'imandrax-db'));
17+
dbPath = path.join(root, '..', '..', '.vscode-test', 'db', 'imandrax.sqlite');
1918
await fs.rm(dbPath, { force: true });
2019
vscode.window.showInformationMessage('All tests done!');
2120
});

0 commit comments

Comments
 (0)