diff --git a/smoke-test/smoke.test.ts b/smoke-test/smoke.test.ts index 21f836d3..a762f2d1 100644 --- a/smoke-test/smoke.test.ts +++ b/smoke-test/smoke.test.ts @@ -17,6 +17,9 @@ suite('Smoke test suite', function () { let unformattedUri: URI; this.beforeAll(async function () { + if (vscode.workspace.workspaceFolders === undefined) { + assert.fail('No workspace folder'); + } const workspaceUri = vscode.workspace.workspaceFolders[0].uri; schemaInstanceUri = workspaceUri.with({ path: workspaceUri.path + (workspaceUri.path.endsWith('/') ? '' : '/') + SCHEMA_INSTANCE_NAME,