Files
tsgo/internal/fourslash/tests/findAllRefsExportStringRename_test.go
b61c4fa736 Fix panic on find-all-references for string-renamed export (#2856)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-02-20 19:23:25 +00:00

19 lines
483 B
Go

package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestFindAllRefsExportStringRename(t *testing.T) {
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `const foo = 123;
export { foo as /**/"bar" };`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyBaselineFindAllReferences(t, "")
}