vendor tsgo
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual autoImportsNodeNext1"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
. "github.com/microsoft/typescript-go/internal/fourslash/tests/util"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestAutoImportsNodeNext1(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @module: node18
|
||||
// @Filename: /node_modules/pack/package.json
|
||||
{
|
||||
"name": "pack",
|
||||
"version": "1.0.0",
|
||||
"exports": {
|
||||
".": "./main.mjs"
|
||||
}
|
||||
}
|
||||
// @Filename: /node_modules/pack/main.d.mts
|
||||
import {} from "./unreachable.mjs";
|
||||
export const fromMain = 0;
|
||||
// @Filename: /node_modules/pack/unreachable.d.mts
|
||||
export const fromUnreachable = 0;
|
||||
// @Filename: /index.mts
|
||||
import { fromMain } from "pack";
|
||||
fromUnreachable/**/`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.GoToMarker(t, "")
|
||||
f.VerifyImportFixAtPosition(t, []string{}, nil /*preferences*/)
|
||||
f.VerifyCompletions(t, "", &fourslash.CompletionsExpectedList{
|
||||
IsIncomplete: false,
|
||||
ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{
|
||||
CommitCharacters: &DefaultCommitCharacters,
|
||||
EditRange: Ignored,
|
||||
},
|
||||
Items: &fourslash.CompletionsExpectedItems{
|
||||
Excludes: []string{
|
||||
"fromUnreachable",
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user