Skip to content

Commit 9349803

Browse files
committed
chore: fix doc telemetry unit tests file path mock method fail in windows issue
1 parent 1e1eba1 commit 9349803

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/core/src/test/amazonqDoc/controller.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@ describe('Controller - Doc Generation', () => {
153153
}
154154

155155
return {
156-
getText: () => (path.includes('/tmp/aws-toolkit-vscode') ? generatedReadme : modifiedReadme),
156+
getText: () =>
157+
path.includes('/tmp/aws-toolkit-vscode') || path.includes('\\tmp\\aws-toolkit-vscode')
158+
? generatedReadme
159+
: modifiedReadme,
157160
} as any
158161
})
159162
})

0 commit comments

Comments
 (0)