diff --git a/jest.config.ts b/jest.config.js similarity index 83% rename from jest.config.ts rename to jest.config.js index 1748521f3c..ac40eccfc1 100644 --- a/jest.config.ts +++ b/jest.config.js @@ -1,3 +1,6 @@ +/** @type {import('@jest/types').Config.InitialOptions} */ + +// eslint-disable-next-line no-undef module.exports = { verbose: true, transform: { @@ -38,7 +41,7 @@ module.exports = { "^@screens/(.*)$": "/src/app/screens/$1", }, setupFiles: ["jest-webextension-mock", "fake-indexeddb/auto"], - testEnvironment: "./jest.custom-test-environment.ts", - setupFilesAfterEnv: ["./jest.setup.ts"], + testEnvironment: "./jest.custom-test-environment.js", + setupFilesAfterEnv: ["./jest.setup.js"], modulePathIgnorePatterns: ["/tests"], }; diff --git a/jest.custom-test-environment.ts b/jest.custom-test-environment.js similarity index 100% rename from jest.custom-test-environment.ts rename to jest.custom-test-environment.js diff --git a/jest.setup.ts b/jest.setup.js similarity index 100% rename from jest.setup.ts rename to jest.setup.js diff --git a/package.json b/package.json index cadfded052..3744d2f2d3 100644 --- a/package.json +++ b/package.json @@ -82,6 +82,7 @@ "@babel/preset-typescript": "^7.16.7", "@commitlint/cli": "^17.0.2", "@commitlint/config-conventional": "^17.0.2", + "@jest/types": "^28.1.1", "@playwright/test": "^1.22.2", "@storybook/addon-actions": "^6.5.6", "@storybook/addon-essentials": "^6.5.6", @@ -144,7 +145,6 @@ "sass-loader": "^13.0.0", "stream-browserify": "^3.0.0", "terser-webpack-plugin": "^5.3.3", - "ts-node": "^10.8.1", "tsconfig-paths-webpack-plugin": "^3.5.2", "typescript": "^4.7.4", "webpack": "^5.73.0", diff --git a/yarn.lock b/yarn.lock index 40bb59da07..d3ab88c2c0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2519,13 +2519,6 @@ dependencies: "@cspotcode/source-map-consumer" "0.8.0" -"@cspotcode/source-map-support@^0.8.0": - version "0.8.1" - resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" - integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== - dependencies: - "@jridgewell/trace-mapping" "0.3.9" - "@discoveryjs/json-ext@^0.5.0", "@discoveryjs/json-ext@^0.5.3": version "0.5.3" resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.3.tgz#90420f9f9c6d3987f176a19a7d8e764271a2f55d" @@ -2955,14 +2948,6 @@ resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.13.tgz#b6461fb0c2964356c469e115f504c95ad97ab88c" integrity sha512-GryiOJmNcWbovBxTfZSF71V/mXbgcV3MewDe3kIMCLyIh5e7SKAeUZs+rMnJ8jkMolZ/4/VsdBmMrw3l+VdZ3w== -"@jridgewell/trace-mapping@0.3.9": - version "0.3.9" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9" - integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== - dependencies: - "@jridgewell/resolve-uri" "^3.0.3" - "@jridgewell/sourcemap-codec" "^1.4.10" - "@jridgewell/trace-mapping@^0.3.0", "@jridgewell/trace-mapping@^0.3.7", "@jridgewell/trace-mapping@^0.3.9": version "0.3.13" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.13.tgz#dcfe3e95f224c8fe97a87a5235defec999aa92ea" @@ -17075,25 +17060,6 @@ ts-node@^10.7.0: v8-compile-cache-lib "^3.0.0" yn "3.1.1" -ts-node@^10.8.1: - version "10.8.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.8.1.tgz#ea2bd3459011b52699d7e88daa55a45a1af4f066" - integrity sha512-Wwsnao4DQoJsN034wePSg5nZiw4YKXf56mPIAeD6wVmiv+RytNSWqc2f3fKvcUoV+Yn2+yocD71VOfQHbmVX4g== - dependencies: - "@cspotcode/source-map-support" "^0.8.0" - "@tsconfig/node10" "^1.0.7" - "@tsconfig/node12" "^1.0.7" - "@tsconfig/node14" "^1.0.0" - "@tsconfig/node16" "^1.0.2" - acorn "^8.4.1" - acorn-walk "^8.1.1" - arg "^4.1.0" - create-require "^1.1.0" - diff "^4.0.1" - make-error "^1.1.1" - v8-compile-cache-lib "^3.0.1" - yn "3.1.1" - ts-pnp@^1.1.6: version "1.2.0" resolved "https://registry.npmjs.org/ts-pnp/-/ts-pnp-1.2.0.tgz" @@ -17583,11 +17549,6 @@ v8-compile-cache-lib@^3.0.0: resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.0.tgz#0582bcb1c74f3a2ee46487ceecf372e46bce53e8" integrity sha512-mpSYqfsFvASnSn5qMiwrr4VKfumbPyONLCOPmsR3A6pTY/r0+tSaVbgPWSAIuzbk3lCTa+FForeTiO+wBQGkjA== -v8-compile-cache-lib@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" - integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== - v8-compile-cache@^2.0.3: version "2.3.0" resolved "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz"