Skip to content

Commit e63536b

Browse files
committed
fix(dev): validate files and paths on failing test
1 parent 8f7fa07 commit e63536b

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

packages/core/src/test/amazonqFeatureDev/session/sessionState.test.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,9 @@ describe('sessionState', () => {
121121

122122
const nextState = new PrepareCodeGenState(testConfig, [], [], [], tabId, 1, 2, 3, undefined)
123123

124-
assert.deepStrictEqual(result.nextState?.deletedFiles, {
125-
nextState: nextState.deletedFiles,
126-
interaction: {},
127-
})
128-
assert.deepStrictEqual(result.nextState?.filePaths, {
129-
nextState: nextState.filePaths,
130-
interaction: {},
131-
})
132-
assert.deepStrictEqual(result.nextState?.references, {
133-
nextState: nextState.references,
134-
interaction: {},
135-
})
124+
assert.deepStrictEqual(result.nextState?.deletedFiles, nextState.deletedFiles)
125+
assert.deepStrictEqual(result.nextState?.filePaths, result.nextState?.filePaths)
126+
assert.deepStrictEqual(result.nextState?.references, result.nextState?.references)
136127
})
137128

138129
it('fails when codeGenerationStatus failed ', async () => {

0 commit comments

Comments
 (0)