24 lines
589 B
Go
24 lines
589 B
Go
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
|
|
)
|
|
|
|
func TestGoToDefinitionJsxCall(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @filename: ./test.tsx
|
|
interface FC<P = {}> {
|
|
(props: P, context?: any): string;
|
|
}
|
|
|
|
const Thing: FC = (props) => <div></div>;
|
|
const HelloWorld = () => <[|/**/Thing|] />;`
|
|
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
f.VerifyBaselineGoToDefinition(t, "")
|
|
}
|