Skip to content

Commit fbcee84

Browse files
committed
updating test import and adding changelog
1 parent 261642a commit fbcee84

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Feature(Amazon Q Code Transformation): allow users to view results in 5 smaller diffs"
4+
}

packages/amazonq/test/unit/amazonqGumby/transformationResultsHandler.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ import { DescriptionContent } from 'aws-core-vscode/codewhisperer'
99
import path from 'path'
1010
import { getTestResourceFilePath } from './amazonQGumbyUtil'
1111
import { fs } from 'aws-core-vscode/shared'
12-
// eslint-disable-next-line no-restricted-imports
13-
import { createTestWorkspace } from '../../../../core/dist/src/test/testUtil'
12+
import { createTestWorkspace } from 'aws-core-vscode/test'
1413

1514
describe('DiffModel', function () {
1615
let parsedTestDescriptions: DescriptionContent
@@ -83,8 +82,6 @@ describe('DiffModel', function () {
8382
const change = testDiffModel.patchFileNodes[0].children[0]
8483

8584
assert.strictEqual(change instanceof ModifiedChangeNode, true)
86-
87-
await fs.delete(path.join(workspaceFolder.uri.fsPath, 'README.md'), { recursive: true })
8885
})
8986

9087
it('WHEN parsing a diff patch where diff.json is not present and a file was modified THEN returns an array representing the modified file', async function () {
@@ -115,7 +112,5 @@ describe('DiffModel', function () {
115112
const change = testDiffModel.patchFileNodes[0].children[0]
116113

117114
assert.strictEqual(change instanceof ModifiedChangeNode, true)
118-
119-
await fs.delete(path.join(workspaceFolder.uri.fsPath, 'README.md'), { recursive: true })
120115
})
121116
})

0 commit comments

Comments
 (0)