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

package fourslash_test

import (
	"testing"

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

func TestRenameForDefaultExport02(t *testing.T) {
	fourslash.SkipIfFailing(t)
	t.Parallel()
	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `[|export default function /*1*/[|{| "contextRangeIndex": 0 |}DefaultExportedFunction|]() {
    return /*2*/[|DefaultExportedFunction|]
}|]
/**
 *  Commenting [|{| "inComment": true |}DefaultExportedFunction|]
 */

var x: typeof /*3*/[|DefaultExportedFunction|];

var y = /*4*/[|DefaultExportedFunction|]();`
	f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	defer done()
	f.VerifyBaselineRename(t, nil /*preferences*/, ToAny(core.Filter(f.GetRangesByText().Get("DefaultExportedFunction"), func(r *fourslash.RangeMarker) bool { return r.Marker == nil || r.Marker.Data["inComment"] == nil }))...)
}
