diff --git a/client/config/paths.js b/client/config/paths.js index a2b5e0222481..3c913f11cc95 100644 --- a/client/config/paths.js +++ b/client/config/paths.js @@ -51,7 +51,6 @@ const config = { appSrc: resolveApp("src"), appTsConfig: resolveApp("tsconfig.json"), yarnLockFile: resolveApp("../yarn.lock"), - testsSetup: resolveModule(resolveApp, "src/setupTests"), proxySetup: resolveApp("src/setupProxy.js"), publicUrlOrPath, libsPath: resolveApp("../libs"), diff --git a/client/config/webpack.config.js b/client/config/webpack.config.js index 42eba0327d4a..7436b4bff215 100644 --- a/client/config/webpack.config.js +++ b/client/config/webpack.config.js @@ -570,7 +570,6 @@ function config(webpackEnv) { { file: "**/src/**/__tests__/**" }, { file: "**/src/**/?(*.){spec|test}.*" }, { file: "**/src/setupProxy.*" }, - { file: "**/src/setupTests.*" }, ], }, }), diff --git a/client/src/setupTests.js b/client/src/setupTests.js deleted file mode 100644 index e9572e9a6486..000000000000 --- a/client/src/setupTests.js +++ /dev/null @@ -1,20 +0,0 @@ -// localStorage mock for tests -const mockLocalStorage = () => { - let store = {}; - return { - getItem: function (key) { - return store[key] || null; - }, - removeItem: function (key) { - delete store[key]; - }, - setItem: function (key, value) { - store[key] = value.toString(); - }, - clear: function () { - store = {}; - }, - }; -}; - -global.localStorage = mockLocalStorage();