Skip to content

Commit 7f2b2e3

Browse files
committed
addressing messages
1 parent b0fd08d commit 7f2b2e3

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

vscode/extension/tests/lineage.spec.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,29 +38,25 @@ test('Lineage panel renders correctly - no project path config (default)', async
3838
test('Lineage panel renders correctly - relative project path', async ({
3939
page,
4040
sharedCodeServer,
41+
tempDir,
4142
}) => {
42-
const workspaceDir = await fs.mkdtemp(
43-
path.join(os.tmpdir(), 'vscode-test-workspace-'),
44-
)
45-
const projectDir = path.join(workspaceDir, 'projects', 'sushi')
43+
const projectDir = path.join(tempDir, 'projects', 'sushi')
4644
await fs.copy(SUSHI_SOURCE_PATH, projectDir)
4745

4846
const settings = {
4947
'sqlmesh.projectPath': './projects/sushi',
5048
'python.defaultInterpreterPath': sharedCodeServer.defaultPythonInterpreter,
5149
}
52-
await fs.ensureDir(path.join(workspaceDir, '.vscode'))
53-
await fs.writeJson(
54-
path.join(workspaceDir, '.vscode', 'settings.json'),
55-
settings,
56-
{ spaces: 2 },
57-
)
50+
await fs.ensureDir(path.join(tempDir, '.vscode'))
51+
await fs.writeJson(path.join(tempDir, '.vscode', 'settings.json'), settings, {
52+
spaces: 2,
53+
})
5854

5955
try {
60-
await openServerPage(page, workspaceDir, sharedCodeServer)
56+
await openServerPage(page, tempDir, sharedCodeServer)
6157
await testLineageWithProjectPath(page)
6258
} finally {
63-
await fs.remove(workspaceDir)
59+
await fs.remove(tempDir)
6460
}
6561
})
6662

0 commit comments

Comments
 (0)