36 lines
958 B
Go
36 lines
958 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual moduleNodeNextAutoImport1"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestModuleNodeNextAutoImport1(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.ts
|
|
export declare function autorun(): void;
|
|
// @Filename: /index.ts
|
|
autorun/**/
|
|
// @Filename: /utils.ts
|
|
import "./mobx.js";`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.GoToMarker(t, "")
|
|
f.VerifyImportFixAtPosition(t, []string{
|
|
`import { autorun } from "./mobx.js";
|
|
|
|
autorun`,
|
|
}, nil /*preferences*/)
|
|
}
|