mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
1.1 KiB
Go
31 lines
1.1 KiB
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual referencesInStringLiteralValueWithMultipleProjects"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestReferencesInStringLiteralValueWithMultipleProjects(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @Filename: /home/src/workspaces/project/a/tsconfig.json
|
|
{ "files": ["a.ts"], "compilerOptions": { "lib": ["es5"] } }
|
|
// @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"], "compilerOptions": { "lib": ["es5"] } }
|
|
// @Filename: /home/src/workspaces/project/b/b.ts
|
|
const str2: string = "hello/*2*/";`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.MarkTestAsStradaServer()
|
|
f.VerifyBaselineFindAllReferences(t, "1", "2")
|
|
}
|