Skip to content

Commit ab3fd1b

Browse files
committed
try fix crossFileContextUtil.test failure
1 parent ad52466 commit ab3fd1b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/amazonq/test/unit/codewhisperer/util/crossFileContextUtil.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,8 @@ describe('crossFileContextUtil', function () {
312312
})
313313

314314
describe('full support', function () {
315-
// TODO: fix it
316-
// const fileExtLists = ['java', 'js', 'ts', 'py', 'tsx', 'jsx']
317-
const fileExtLists = ['java']
315+
const fileExtLists = ['java', 'js', 'ts', 'py', 'tsx', 'jsx']
316+
// const fileExtLists = ['java']
318317

319318
before(async function () {
320319
this.timeout(60000)
@@ -342,7 +341,7 @@ describe('crossFileContextUtil', function () {
342341
filePath: 'q-inline',
343342
},
344343
])
345-
const editor = await toTextEditor('content-1', `file-1.${fileExt}`, tempFolder)
344+
const editor = await toTextEditor('content-1', `file-1.${fileExt}`, tempFolder, { preview: false })
346345
await toTextEditor('content-2', `file-2.${fileExt}`, tempFolder, { preview: false })
347346
await toTextEditor('content-3', `file-3.${fileExt}`, tempFolder, { preview: false })
348347
await toTextEditor('content-4', `file-4.${fileExt}`, tempFolder, { preview: false })

0 commit comments

Comments
 (0)