vendor tsgo
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual moduleNodeNextAutoImport3"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestModuleNodeNextAutoImport3(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @Filename: /tsconfig.json
|
||||
{ "compilerOptions": { "module": "nodenext" } }
|
||||
// @Filename: /package.json
|
||||
{ "type": "module" }
|
||||
// @Filename: /mobx.d.mts
|
||||
export declare function autorun(): void;
|
||||
// @Filename: /index.ts
|
||||
autorun/**/
|
||||
// @Filename: /utils.ts
|
||||
import "./mobx.mjs";`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.GoToMarker(t, "")
|
||||
f.VerifyImportFixAtPosition(t, []string{
|
||||
`import { autorun } from "./mobx.mjs";
|
||||
|
||||
autorun`,
|
||||
}, nil /*preferences*/)
|
||||
}
|
||||
Reference in New Issue
Block a user