vendor tsgo
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual goToDefinitionScriptImportServer"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestGoToDefinitionScriptImportServer(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @lib: es5
|
||||
// @Filename: /home/src/workspaces/project/scriptThing.ts
|
||||
/*1d*/console.log("woooo side effects")
|
||||
// @Filename: /home/src/workspaces/project/stylez.css
|
||||
/*2d*/div {
|
||||
color: magenta;
|
||||
}
|
||||
// @Filename: /home/src/workspaces/project/moduleThing.ts
|
||||
import [|/*1*/"./scriptThing"|];
|
||||
import [|/*2*/"./stylez.css"|];
|
||||
import [|/*3*/"./foo.txt"|];`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.MarkTestAsStradaServer()
|
||||
f.VerifyBaselineGoToDefinition(t, true, "1", "2", "3")
|
||||
}
|
||||
Reference in New Issue
Block a user