jest-test.config.js (846B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */ 4 5 "use strict"; 6 7 const sharedJestConfig = require( 8 `${__dirname}/../shared/test-helpers/shared-jest.config` 9 ); 10 11 module.exports = { 12 testEnvironment: "jsdom", 13 testPathIgnorePatterns: [ 14 "/node_modules/", 15 "/helpers/", 16 "/fixtures/", 17 "src/test/mochitest/examples/", 18 "package.json", 19 ], 20 modulePathIgnorePatterns: ["test/mochitest"], 21 setupFilesAfterEnv: ["<rootDir>/src/test/tests-setup.js"], 22 setupFiles: ["<rootDir>/src/test/shim.js", "jest-localstorage-mock"], 23 moduleNameMapper: { 24 ...sharedJestConfig.moduleNameMapper, 25 "react-dom-factories": "<rootDir>/../shared/vendor/react-dom-factories.js", 26 }, 27 };