Skip to content

Commit 07af78b

Browse files
authored
feat(ct): react17 generate playwright/index.[tj]sx (#104)
1 parent 65dcba0 commit 07af78b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function executeTemplate(input: string, args: Record<string, string>, sec
8282
}
8383

8484
export function getFileExtensionCT(language: PromptOptions['language'], framework: PromptOptions['framework']) {
85-
const isJsxFramework = framework === 'solid' || framework === 'react';
85+
const isJsxFramework = framework === 'solid' || framework === 'react' || framework === 'react17';
8686
if (isJsxFramework && language === 'JavaScript')
8787
return 'jsx';
8888
else if (isJsxFramework && language === 'TypeScript')

0 commit comments

Comments
 (0)