From 323fc81ff0b34af93167a64ba9ae8cf44acc3e72 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Fri, 28 Jul 2023 09:30:21 +0800 Subject: [PATCH] fix --- .../tests/default/test/http/isomorphic-fetch.test.ts | 4 ++-- .../client/petstore/typescript/tests/default/tsconfig.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/openapi3/client/petstore/typescript/tests/default/test/http/isomorphic-fetch.test.ts b/samples/openapi3/client/petstore/typescript/tests/default/test/http/isomorphic-fetch.test.ts index 748c7ad46e33..7abdfb02ccfc 100644 --- a/samples/openapi3/client/petstore/typescript/tests/default/test/http/isomorphic-fetch.test.ts +++ b/samples/openapi3/client/petstore/typescript/tests/default/test/http/isomorphic-fetch.test.ts @@ -1,7 +1,7 @@ import * as petstore from "ts-petstore-client"; import { expect} from "chai"; -import * as FormData from "form-data"; +import FormData from "form-data"; let libs: { [key: string]: petstore.HttpLibrary } = { "isomorphic-fetch": new petstore.IsomorphicFetchHttpLibrary() @@ -68,4 +68,4 @@ for (let libName in libs) { }).catch(done) }) }) -} \ No newline at end of file +} diff --git a/samples/openapi3/client/petstore/typescript/tests/default/tsconfig.json b/samples/openapi3/client/petstore/typescript/tests/default/tsconfig.json index 4596f6e40bcf..0a5080d1bdab 100644 --- a/samples/openapi3/client/petstore/typescript/tests/default/tsconfig.json +++ b/samples/openapi3/client/petstore/typescript/tests/default/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "esModuleInterop": true, "module": "commonjs", "target": "es6", "noImplicitAny": true,