From 7ca634d69fad88c30f0b36944de6dffc591e68d2 Mon Sep 17 00:00:00 2001 From: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com> Date: Sun, 1 Mar 2026 13:43:03 +0100 Subject: [PATCH] chore: remove obsolete Jest config and unit test global setup --- jest.config.js | 41 ------------------------------ tests/unit/helpers/global-setup.js | 3 --- 2 files changed, 44 deletions(-) delete mode 100644 jest.config.js delete mode 100644 tests/unit/helpers/global-setup.js diff --git a/jest.config.js b/jest.config.js deleted file mode 100644 index bb4942cf4b..0000000000 --- a/jest.config.js +++ /dev/null @@ -1,41 +0,0 @@ -const aliasMapper = { - logger: "/js/logger.js" -}; - -const config = { - verbose: true, - testTimeout: 20000, - testSequencer: "/tests/utils/test_sequencer.js", - projects: [ - { - displayName: "unit", - globalSetup: "/tests/unit/helpers/global-setup.js", - moduleNameMapper: aliasMapper, - testMatch: ["**/tests/unit/**/*.[jt]s?(x)"], - testPathIgnorePatterns: ["/tests/unit/mocks", "/tests/unit/helpers"] - }, - { - displayName: "electron", - testMatch: ["**/tests/electron/**/*.[jt]s?(x)"], - moduleNameMapper: aliasMapper, - testPathIgnorePatterns: ["/tests/electron/helpers"] - }, - { - displayName: "e2e", - testMatch: ["**/tests/e2e/**/*.[jt]s?(x)"], - modulePaths: ["/js/"], - moduleNameMapper: aliasMapper, - testPathIgnorePatterns: ["/tests/e2e/helpers", "/tests/e2e/mocks"] - } - ], - collectCoverageFrom: [ - "/clientonly/**/*.js", - "/js/**/*.js", - "/defaultmodules/**/*.js", - "/serveronly/**/*.js" - ], - coverageReporters: ["lcov", "text"], - coverageProvider: "v8" -}; - -module.exports = config; diff --git a/tests/unit/helpers/global-setup.js b/tests/unit/helpers/global-setup.js deleted file mode 100644 index d4a4977858..0000000000 --- a/tests/unit/helpers/global-setup.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = () => { - process.env.TZ = "UTC"; -};