Skip to content

Commit 36255d6

Browse files
author
David Hasani
committed
use TestFolder
1 parent 1b5944e commit 36255d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/amazonq/test/e2e/amazonq/transformByQ.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { GumbyController, setMaven, startTransformByQ, TabsStorage } from 'aws-c
1212
import { using, registerAuthHook, TestFolder } from 'aws-core-vscode/test'
1313
import { loginToIdC } from './utils/setup'
1414
import { fs } from 'aws-core-vscode/shared'
15-
import * as os from 'os'
1615
import path from 'path'
1716

1817
describe('Amazon Q Code Transformation', function () {
@@ -155,7 +154,9 @@ describe('Amazon Q Code Transformation', function () {
155154
// this 'Sorry' message is OK - just making sure that the UI components are working correctly
156155
assert.strictEqual(jdkPathResponse?.body?.includes("Sorry, I couldn't locate your Java installation"), true)
157156

158-
transformByQState.setSummaryFilePath(path.join(os.tmpdir(), 'summary.md'))
157+
const tmpDir = (await TestFolder.create()).path
158+
159+
transformByQState.setSummaryFilePath(path.join(tmpDir, 'summary.md'))
159160

160161
tab.clickCustomFormButton({
161162
id: 'gumbyViewSummary',

0 commit comments

Comments
 (0)