diff --git a/package.json b/package.json index 2fc29ca9a..6404233c0 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,8 @@ "prettier-plugin-organize-imports": "^3.2.3", "prettier-plugin-solidity": "^1.1.3", "syncpack": "^11.2.1", - "typescript": "^5.2.2" + "typescript": "^5.2.2", + "ts-jest": "^29.1.1" }, "overrides": { "web3-eth-contract": "1.10.0" diff --git a/packages/paima-sdk/paima-concise/package.json b/packages/paima-sdk/paima-concise/package.json index 6b1414c41..3643e2dc5 100644 --- a/packages/paima-sdk/paima-concise/package.json +++ b/packages/paima-sdk/paima-concise/package.json @@ -22,7 +22,7 @@ "homepage": "https://docs.paimastudios.com", "scripts": { "lint:eslint": "eslint .", - "test": "jest", + "test": "jest --runInBand", "build": "tsc --build tsconfig.build.json" }, "dependencies": { @@ -31,7 +31,6 @@ }, "devDependencies": { "@types/node": "^18.17.1", - "ts-jest": "^29.1.1", "@paima/utils": "1.1.0" } } diff --git a/packages/paima-sdk/paima-crypto/jest.config.js b/packages/paima-sdk/paima-crypto/jest.config.js index 4049b608f..c6bfbc7f0 100644 --- a/packages/paima-sdk/paima-crypto/jest.config.js +++ b/packages/paima-sdk/paima-crypto/jest.config.js @@ -1,10 +1,10 @@ /** @type {import('@ts-jest/dist/types').InitialOptionsTsJest} */ export default { verbose: true, - preset: 'ts-jest/presets/default-esm', + extensionsToTreatAsEsm: ['.ts'], testEnvironment: 'node', transform: { - '^.+\\.[tj]sx?$': ['ts-jest', { useESM: true, }], + '^.+\\.tsx?$': ['ts-jest', { useESM: true, }], }, transformIgnorePatterns: [ '/node_modules/', diff --git a/packages/paima-sdk/paima-providers/jest.config.js b/packages/paima-sdk/paima-providers/jest.config.js index 4049b608f..c6bfbc7f0 100644 --- a/packages/paima-sdk/paima-providers/jest.config.js +++ b/packages/paima-sdk/paima-providers/jest.config.js @@ -1,10 +1,10 @@ /** @type {import('@ts-jest/dist/types').InitialOptionsTsJest} */ export default { verbose: true, - preset: 'ts-jest/presets/default-esm', + extensionsToTreatAsEsm: ['.ts'], testEnvironment: 'node', transform: { - '^.+\\.[tj]sx?$': ['ts-jest', { useESM: true, }], + '^.+\\.tsx?$': ['ts-jest', { useESM: true, }], }, transformIgnorePatterns: [ '/node_modules/', diff --git a/packages/paima-sdk/paima-utils-backend/package.json b/packages/paima-sdk/paima-utils-backend/package.json index 1f5abedc9..89a3c961b 100644 --- a/packages/paima-sdk/paima-utils-backend/package.json +++ b/packages/paima-sdk/paima-utils-backend/package.json @@ -25,8 +25,7 @@ "build": "tsc" }, "devDependencies": { - "@types/node": "^18.17.1", - "ts-jest": "^29.1.1" + "@types/node": "^18.17.1" }, "dependencies": { "yaml": "^2.3.1", diff --git a/packages/paima-sdk/paima-utils/jest.config.js b/packages/paima-sdk/paima-utils/jest.config.js index 2f167ba14..e8aca2bf1 100644 --- a/packages/paima-sdk/paima-utils/jest.config.js +++ b/packages/paima-sdk/paima-utils/jest.config.js @@ -1,10 +1,10 @@ /** @type {import('@ts-jest/dist/types').InitialOptionsTsJest} */ export default { verbose: true, - preset: 'ts-jest/presets/default-esm', + extensionsToTreatAsEsm: ['.ts'], testEnvironment: 'node', transform: { - '^.+\\.[tj]sx?$': ['ts-jest', { useESM: true, }], + '^.+\\.tsx?$': ['ts-jest', { useESM: true, }], }, transformIgnorePatterns: [ '/node_modules/',