File tree 1 file changed +4
-3
lines changed
packages/core/src/test/codewhisperer/commands
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 6
6
import assert from 'assert'
7
7
import * as vscode from 'vscode'
8
8
import * as fs from 'fs-extra'
9
+ import * as os from 'os'
9
10
import * as sinon from 'sinon'
10
11
import { makeTemporaryToolkitFolder } from '../../../shared/filesystemUtilities'
11
12
import { BuildSystem , transformByQState , TransformByQStoppedError } from '../../../codewhisperer/models/model'
@@ -332,9 +333,9 @@ describe('transformByQ', function () {
332
333
333
334
describe ( 'resetDebugArtifacts' , ( ) => {
334
335
it ( 'should remove the directory containing the pre-build log file if it exists' , async ( ) => {
335
- const dirPath = await createTestWorkspaceFolder ( 'q-transformation-build-logs' )
336
- const preBuildLogFilePath = path . join ( dirPath . uri . fsPath , 'DummyLog.log' )
337
- await toFile ( '' , preBuildLogFilePath )
336
+ const dirPath = path . join ( os . tmpdir ( ) , 'q-transformation-build-logs' )
337
+ const preBuildLogFilePath = path . join ( dirPath , 'DummyLog.log' )
338
+ await toFile ( '<logs> ' , preBuildLogFilePath )
338
339
transformByQState . setPreBuildLogFilePath ( preBuildLogFilePath )
339
340
340
341
await resetDebugArtifacts ( )
You can’t perform that action at this time.
0 commit comments