// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual codeFixMissingTypeAnnotationOnExports47"

package fourslash_test

import (
	"testing"

	"github.com/microsoft/typescript-go/internal/fourslash"
	"github.com/microsoft/typescript-go/internal/testutil"
)

func TestCodeFixMissingTypeAnnotationOnExports47(t *testing.T) {
	fourslash.SkipIfFailing(t)
	t.Parallel()
	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `// @isolatedDeclarations: true
// @declaration: true
// @moduleResolution: bundler
// @target: es2018
// @jsx: react-jsx
// @filename: node_modules/react/package.json
{
    "name": "react",
    "types": "index.d.ts"
}
// @filename: node_modules/react/index.d.ts
export = React;
declare namespace JSX {
    interface Element extends GlobalJSXElement { }
    interface IntrinsicElements extends GlobalJSXIntrinsicElements { }
}
declare namespace React { }
declare global {
    namespace JSX {
        interface Element { }
        interface IntrinsicElements { [x: string]: any; }
    }
}
interface GlobalJSXElement extends JSX.Element {}
interface GlobalJSXIntrinsicElements extends JSX.IntrinsicElements {}
// @filename: node_modules/react/jsx-runtime.d.ts
import './';
// @filename: node_modules/react/jsx-dev-runtime.d.ts
import './';
// @filename: /a.tsx
export const x = <div aria-label="label text" />;`
	f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	defer done()
	f.GoToFile(t, "/a.tsx")
	f.VerifyCodeFix(t, fourslash.VerifyCodeFixOptions{
		Description:    "Add annotation of type 'JSX.Element'",
		NewFileContent: `export const x: JSX.Element = <div aria-label="label text" />;`,
		Index:          0,
	})
}
