kittenipc/kitcom/internal/tsgo/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash1_test.go
2025-10-15 10:12:44 +03:00

43 lines
1.0 KiB
Go

package fourslash_test
import (
"testing"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
)
func TestFindReferencesBindingPatternInJsdocNoCrash1(t *testing.T) {
t.Parallel()
t.Skip()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @moduleResolution: node
// @Filename: node_modules/use-query/package.json
{
"name": "use-query",
"types": "index.d.ts"
}
// @Filename: node_modules/use-query/index.d.ts
declare function useQuery(): {
data: string[];
};
// @Filename: node_modules/other/package.json
{
"name": "other",
"types": "index.d.ts"
}
// @Filename: node_modules/other/index.d.ts
interface BottomSheetModalProps {
/**
* A scrollable node or normal view.
* @type {({ data: any }?) => any}
*/
children: ({ data: any }?) => any;
}
// @Filename: src/index.ts
import { useQuery } from "use-query";
const { /*1*/data } = useQuery();`
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
f.VerifyBaselineFindAllReferences(t, "1")
}