vendor tsgo
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual suggestionNoDuplicates"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/lsp/lsproto"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestSuggestionNoDuplicates(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @strict: false
|
||||
// @Filename: foo.ts
|
||||
import { f } from [|'m'|]
|
||||
f
|
||||
// @Filename: node_modules/m/index.js
|
||||
module.exports.f = function (x) { return x }`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyNonSuggestionDiagnostics(t, nil)
|
||||
f.VerifySuggestionDiagnostics(t, []*lsproto.Diagnostic{
|
||||
{
|
||||
Code: &lsproto.IntegerOrString{Integer: new(int32(7016))},
|
||||
Message: lsproto.StringOrMarkupContent{String: new("Could not find a declaration file for module 'm'. '/node_modules/m/index.js' implicitly has an 'any' type.")},
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user