// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual nodeModulesFileEditStillAllowsResolutionsToWork"

package fourslash_test

import (
	"testing"

	"github.com/microsoft/typescript-go/internal/fourslash"
	"github.com/microsoft/typescript-go/internal/testutil"
)

func TestNodeModulesFileEditStillAllowsResolutionsToWork(t *testing.T) {
	fourslash.SkipIfFailing(t)
	t.Parallel()
	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `// @Filename: /tsconfig.json
{ "compilerOptions": { "module": "nodenext", "strict": true } }
// @Filename: /package.json
{ "type": "module", "imports": { "#foo": "./foo.cjs" } }
// @Filename: /foo.cts
export const x = 1;
// @Filename: /index.ts
import * as mod from "#foo";
/**/`
	f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	defer done()
	f.GoToMarker(t, "")
	f.Insert(t, "mod.x")
	f.VerifyNoErrors(t)
	f.VerifySuggestionDiagnostics(t, nil)
}
