Files
kjol/tools/tsgo/internal/fourslash/tests/gen/quickinfoVerbosity3_test.go
2026-07-09 16:50:43 -04:00

52 lines
1.3 KiB
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual quickinfoVerbosity3"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestQuickinfoVerbosity3(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @Filename: /a.ts
export type X = { x: number };
export function f(x: X): void {}
// @Filename: /b.ts
import { f } from "./a";
/*1*/f({ x: 1 });
// @Filename: file.tsx
// @jsx: preserve
// @noLib: true
interface OptionProp {
propx: 2
}
class Opt extends React.Component<OptionProp, {}> {
render() {
return <div>Hello</div>;
}
}
const obj1: OptionProp = {
propx: 2
}
let y1 = <Opt/*2*/ propx={2} />;
// @Filename: a.ts
interface Foo/*3*/<T extends Date> {
prop: T
}
class Bar/*4*/<T extends Date> implements Foo<T> {
prop!: T
}
// @Filename: c.ts
class c5b { public foo() { } }
namespace c5b/*5*/ { export var y = 2; }`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyBaselineHoverWithVerbosity(t, map[string][]int{"1": {0, 1}, "2": {0, 1, 2}, "3": {0, 1}, "4": {0, 1, 2}, "5": {0, 1, 2}})
}