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