From a9f050d0827f61d953d05cd288dfecf7bc79687b Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 3 Mar 2023 18:56:12 +0100 Subject: [PATCH] remove jest --- apps/debugger/tsconfig.app.json | 1 - apps/etherscan/tsconfig.app.json | 1 - apps/remix-ide-e2e/src/local-plugin/.eslintrc | 1 - apps/remix-ide/tsconfig.json | 2 +- apps/remix-ide/tsconfig.spec.json | 2 +- apps/solidity-compiler/tsconfig.app.json | 1 - jest.preset.js | 4 --- libs/ghaction-helper/tsconfig.json | 2 +- libs/remix-solidity/jest.config.js | 26 ------------------- libs/remix-solidity/tsconfig.json | 2 +- libs/remix-tests/tsconfig.spec.json | 2 +- libs/remixd/tsconfig.spec.json | 2 +- package.json | 6 ----- 13 files changed, 6 insertions(+), 46 deletions(-) delete mode 100644 jest.preset.js delete mode 100644 libs/remix-solidity/jest.config.js diff --git a/apps/debugger/tsconfig.app.json b/apps/debugger/tsconfig.app.json index af84f21cfc..252904bb73 100644 --- a/apps/debugger/tsconfig.app.json +++ b/apps/debugger/tsconfig.app.json @@ -9,7 +9,6 @@ "../../node_modules/@nrwl/react/typings/image.d.ts" ], "exclude": [ - "jest.config.ts", "**/*.spec.ts", "**/*.test.ts", "**/*.spec.tsx", diff --git a/apps/etherscan/tsconfig.app.json b/apps/etherscan/tsconfig.app.json index af84f21cfc..252904bb73 100644 --- a/apps/etherscan/tsconfig.app.json +++ b/apps/etherscan/tsconfig.app.json @@ -9,7 +9,6 @@ "../../node_modules/@nrwl/react/typings/image.d.ts" ], "exclude": [ - "jest.config.ts", "**/*.spec.ts", "**/*.test.ts", "**/*.spec.tsx", diff --git a/apps/remix-ide-e2e/src/local-plugin/.eslintrc b/apps/remix-ide-e2e/src/local-plugin/.eslintrc index 3651dc7a8c..75f60dff87 100644 --- a/apps/remix-ide-e2e/src/local-plugin/.eslintrc +++ b/apps/remix-ide-e2e/src/local-plugin/.eslintrc @@ -238,7 +238,6 @@ "browser": true, "commonjs": true, "es6": true, - "jest": true, "node": true }, "settings": { "react": { "version": "detect" } }, diff --git a/apps/remix-ide/tsconfig.json b/apps/remix-ide/tsconfig.json index b2a6956c94..c702a5fbd5 100644 --- a/apps/remix-ide/tsconfig.json +++ b/apps/remix-ide/tsconfig.json @@ -5,7 +5,7 @@ "allowJs": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, - "types": ["node", "jest"], + "types": ["node"], "resolveJsonModule": true }, "files": [ diff --git a/apps/remix-ide/tsconfig.spec.json b/apps/remix-ide/tsconfig.spec.json index 559410b96a..4fa5ed9ba0 100644 --- a/apps/remix-ide/tsconfig.spec.json +++ b/apps/remix-ide/tsconfig.spec.json @@ -3,7 +3,7 @@ "compilerOptions": { "outDir": "../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["node"] }, "include": [ "**/*.spec.ts", diff --git a/apps/solidity-compiler/tsconfig.app.json b/apps/solidity-compiler/tsconfig.app.json index af84f21cfc..252904bb73 100644 --- a/apps/solidity-compiler/tsconfig.app.json +++ b/apps/solidity-compiler/tsconfig.app.json @@ -9,7 +9,6 @@ "../../node_modules/@nrwl/react/typings/image.d.ts" ], "exclude": [ - "jest.config.ts", "**/*.spec.ts", "**/*.test.ts", "**/*.spec.tsx", diff --git a/jest.preset.js b/jest.preset.js deleted file mode 100644 index a7ccccd3f1..0000000000 --- a/jest.preset.js +++ /dev/null @@ -1,4 +0,0 @@ - - const nxPreset = require('@nrwl/jest/preset'); - - module.exports = { ...nxPreset } \ No newline at end of file diff --git a/libs/ghaction-helper/tsconfig.json b/libs/ghaction-helper/tsconfig.json index ec3a5d0c25..5ed408bd51 100644 --- a/libs/ghaction-helper/tsconfig.json +++ b/libs/ghaction-helper/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "types": ["jest", "node"] + "types": ["node"] }, "include": ["**/*.ts"] } \ No newline at end of file diff --git a/libs/remix-solidity/jest.config.js b/libs/remix-solidity/jest.config.js deleted file mode 100644 index f755bd426b..0000000000 --- a/libs/remix-solidity/jest.config.js +++ /dev/null @@ -1,26 +0,0 @@ -module.exports = { - name: 'remix-solidity', - preset: '../../jest.config.js', - verbose: true, - silent: false, // Silent console messages, specially the 'remix-simulator' ones - transform: { - '^.+\\.[tj]sx?$': ['ts-jest', - { - useESM: true, - }] - }, - transformIgnorePatterns: ["/node_modules/", "/dist/", "\\.pnp\\.[^\\/]+$"], - rootDir: "./", - testTimeout: 40000, - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html', 'json'], - // Coverage - collectCoverage: true, - coverageReporters: ['text', 'text-summary'], - collectCoverageFrom: [ - "**/*.ts", - "!**/sol/**", - "!src/types.ts", - "!src/logger.ts" - ], - coverageDirectory: '../../coverage/libs/remix-solidity' -}; diff --git a/libs/remix-solidity/tsconfig.json b/libs/remix-solidity/tsconfig.json index dd13a92439..eb1415fa71 100644 --- a/libs/remix-solidity/tsconfig.json +++ b/libs/remix-solidity/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "types": ["jest", "node"], + "types": ["node"], }, "include": ["**/*.ts"] } \ No newline at end of file diff --git a/libs/remix-tests/tsconfig.spec.json b/libs/remix-tests/tsconfig.spec.json index 559410b96a..4fa5ed9ba0 100644 --- a/libs/remix-tests/tsconfig.spec.json +++ b/libs/remix-tests/tsconfig.spec.json @@ -3,7 +3,7 @@ "compilerOptions": { "outDir": "../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["node"] }, "include": [ "**/*.spec.ts", diff --git a/libs/remixd/tsconfig.spec.json b/libs/remixd/tsconfig.spec.json index 559410b96a..4fa5ed9ba0 100644 --- a/libs/remixd/tsconfig.spec.json +++ b/libs/remixd/tsconfig.spec.json @@ -3,7 +3,7 @@ "compilerOptions": { "outDir": "../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["node"] }, "include": [ "**/*.spec.ts", diff --git a/package.json b/package.json index b2c70214bc..9944b07d81 100644 --- a/package.json +++ b/package.json @@ -226,7 +226,6 @@ "@fortawesome/fontawesome-free": "^5.8.1", "@nrwl/cli": "^15.7.1", "@nrwl/eslint-plugin-nx": "^15.7.1", - "@nrwl/jest": "15.7.1", "@nrwl/js": "15.7.1", "@nrwl/linter": "15.7.1", "@nrwl/node": "15.7.1", @@ -244,7 +243,6 @@ "@types/express-ws": "^3.0.1", "@types/fs-extra": "^9.0.1", "@types/isomorphic-git__lightning-fs": "^4.4.2", - "@types/jest": "28.1.1", "@types/lodash": "^4.14.172", "@types/mocha": "^9.1.1", "@types/node": "18.7.18", @@ -265,7 +263,6 @@ "ace-mode-solidity": "^0.1.0", "ace-mode-zokrates": "^1.0.4", "babel-eslint": "^10.0.0", - "babel-jest": "25.1.0", "babel-plugin-add-module-exports": "^1.0.2", "babel-plugin-fast-async": "^6.1.2", "babel-plugin-module-resolver": "^4.0.0", @@ -316,8 +313,6 @@ "ipfs-mini": "^1.1.5", "is-electron": "^2.2.0", "javascript-serialize": "^1.6.1", - "jest": "^29.3.1", - "jest-environment-jsdom": "28.1.1", "js-base64": "^2.1.9", "js-beautify": "1.6.14", "lerna": "^3.22.1", @@ -350,7 +345,6 @@ "tape": "^4.13.3", "terser-webpack-plugin": "^5.3.6", "timers-browserify": "^2.0.12", - "ts-jest": "^29.0.3", "ts-node": "10.9.1", "tslint": "~6.0.0", "typescript": "^4.8.4",