diff --git a/sdk/jest.config.ts b/sdk/jest.config.ts index 04e040912..d15006424 100644 --- a/sdk/jest.config.ts +++ b/sdk/jest.config.ts @@ -1,9 +1,8 @@ import type { JestConfigWithTsJest } from "ts-jest" const jestConfig: JestConfigWithTsJest = { - preset: "ts-jest/presets/js-with-ts", + preset: "ts-jest", testPathIgnorePatterns: ["/dist/", "/node_modules/"], - transformIgnorePatterns: ["/node_modules/(?!@orangekit/sdk)/"], } export default jestConfig diff --git a/sdk/test/__mocks__/@orangekit/sdk.ts b/sdk/test/__mocks__/@orangekit/sdk.ts new file mode 100644 index 000000000..bc7bd20f4 --- /dev/null +++ b/sdk/test/__mocks__/@orangekit/sdk.ts @@ -0,0 +1 @@ +jest.mock("@orangekit/sdk") diff --git a/sdk/tsconfig.json b/sdk/tsconfig.json index df2c1f6d0..0ac0507f9 100644 --- a/sdk/tsconfig.json +++ b/sdk/tsconfig.json @@ -11,8 +11,6 @@ "esModuleInterop": true, "moduleResolution": "Bundler", "resolveJsonModule": true, - "skipLibCheck": true, - "allowJs": true }, "include": ["src", "test", "src/typings.d.ts", "jest.config.js"] }