46b7972885
* Add JSX codefix if available * Update react jsx. * Update diagnostic code.
24 lines
430 B
TypeScript
24 lines
430 B
TypeScript
/// <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": {
|
|
"jsx": "react",
|
|
}
|
|
}`,
|
|
},
|
|
});
|