mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual getEditsForFileRename_unresolvableImport"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestGetEditsForFileRename_unresolvableImport(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @Filename: /tsconfig.json
|
|
{
|
|
"compilerOptions": {
|
|
"allowJs": true,
|
|
"paths": {
|
|
"*": ["./next/src/*"],
|
|
"@app": ["./modules/@app/*"],
|
|
"@app/*": ["./modules/@app/*"],
|
|
"@local": ["./modules/@local/*"],
|
|
"@local/*": ["./modules/@local/*"]
|
|
}
|
|
}
|
|
}
|
|
// @Filename: /modules/@app/something/index.js
|
|
import "@local/some-other-import";
|
|
// @Filename: /modules/@local/index.js
|
|
import "@local/some-other-import";`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyWillRenameFilesEdits(t, "/modules/@app/something", "/modules/@app/something-2", map[string]string{}, nil /*preferences*/)
|
|
}
|