Skip to content

Commit 5e194ae

Browse files
committed
fix(dev): update tests
1 parent e9ef770 commit 5e194ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ const mockSessionStateConfig = ({
3838
conversationId,
3939
uploadId,
4040
workspaceFolder,
41+
currentCodeGenerationId,
4142
}: {
4243
conversationId: string
4344
uploadId: string
4445
workspaceFolder: vscode.WorkspaceFolder
46+
currentCodeGenerationId?: string
4547
}): SessionStateConfig => ({
4648
workspaceRoots: ['fake-source'],
4749
workspaceFolders: [workspaceFolder],
@@ -54,19 +56,22 @@ const mockSessionStateConfig = ({
5456
exportResultArchive: () => mockExportResultArchive(),
5557
} as unknown as FeatureDevClient,
5658
uploadId,
59+
currentCodeGenerationId,
5760
})
5861

5962
describe('sessionState', () => {
6063
const conversationId = 'conversation-id'
6164
const uploadId = 'upload-id'
6265
const tabId = 'tab-id'
66+
const currentCodeGenerationId = ''
6367
let testConfig: SessionStateConfig
6468

6569
beforeEach(async () => {
6670
testConfig = mockSessionStateConfig({
6771
conversationId,
6872
uploadId,
6973
workspaceFolder: await createTestWorkspaceFolder('fake-root'),
74+
currentCodeGenerationId,
7075
})
7176
})
7277

0 commit comments

Comments
 (0)