26 lines
817 B
Go
26 lines
817 B
Go
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
|
|
)
|
|
|
|
func TestReferencesInStringLiteralValueWithMultipleProjects(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @Filename: /home/src/workspaces/project/a/tsconfig.json
|
|
{ "files": ["a.ts"] }
|
|
// @Filename: /home/src/workspaces/project/a/a.ts
|
|
/// <reference path="../b/b.ts" />
|
|
const str: string = "hello/*1*/";
|
|
// @Filename: /home/src/workspaces/project/b/tsconfig.json
|
|
{ "files": ["b.ts"] }
|
|
// @Filename: /home/src/workspaces/project/b/b.ts
|
|
const str2: string = "hello/*2*/";`
|
|
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
f.VerifyBaselineFindAllReferences(t, "1", "2")
|
|
}
|