2019-08-16 21:46:55 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @Filename: /dir/a.tsx
|
|
|
|
////export const Component = () => <></>;
|
|
|
|
|
|
|
|
// @Filename: /dir/tsconfig.json
|
|
|
|
////{
|
|
|
|
//// "compilerOptions": {
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
|
|
|
goTo.file("/dir/a.tsx");
|
|
|
|
verify.codeFix({
|
|
|
|
description: "Enable the '--jsx' flag in your configuration file",
|
|
|
|
newFileContent: {
|
|
|
|
"/dir/tsconfig.json":
|
|
|
|
`{
|
|
|
|
"compilerOptions": {
|
2020-01-18 21:24:08 +01:00
|
|
|
"jsx": "react"
|
2019-08-16 21:46:55 +02:00
|
|
|
}
|
|
|
|
}`,
|
|
|
|
},
|
|
|
|
});
|