20 lines
378 B
TypeScript
20 lines
378 B
TypeScript
|
/// <reference path='fourslash.ts' />
|
||
|
|
||
|
// @Filename: /dir/a.tsx
|
||
|
////export const Component = () => <></>
|
||
|
|
||
|
// @Filename: /dir/tsconfig.json
|
||
|
////{
|
||
|
////}
|
||
|
|
||
|
goTo.file("/dir/a.tsx");
|
||
|
verify.codeFix({
|
||
|
description: "Enable the '--jsx' flag in your configuration file",
|
||
|
newFileContent: {
|
||
|
"/dir/tsconfig.json":
|
||
|
`{
|
||
|
"compilerOptions": { "jsx": "react" },
|
||
|
}`,
|
||
|
},
|
||
|
});
|