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

49 lines
1.1 KiB
Go

package fourslash_test
import (
"testing"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
. "efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash/tests/util"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
)
func TestTripleSlashRefPathCompletionExtensionsAllowJSFalse(t *testing.T) {
t.Parallel()
t.Skip()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @Filename: test0.ts
/// <reference path="/*0*/
/// <reference path=".//*1*/
/// <reference path="./f/*2*/
// @Filename: f1.ts
// @Filename: f1.js
// @Filename: f1.d.ts
// @Filename: f1.tsx
// @Filename: f1.js
// @Filename: f1.jsx
// @Filename: f1.cs
`
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
f.VerifyCompletions(t, f.Markers(), &fourslash.CompletionsExpectedList{
IsIncomplete: false,
ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{
CommitCharacters: &[]string{},
EditRange: Ignored,
},
Items: &fourslash.CompletionsExpectedItems{
Exact: []fourslash.CompletionsExpectedItem{
"f1.d.ts",
"f1.ts",
"f1.tsx",
},
},
})
}