jest.config.js (838B)
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 /* global __dirname */ 8 const testHelpersDir = `${__dirname}/../../../shared/test-helpers`; 9 const sharedJestConfig = require(`${testHelpersDir}/shared-jest.config`); 10 11 module.exports = { 12 ...sharedJestConfig, 13 moduleNameMapper: { 14 ...sharedJestConfig.moduleNameMapper, 15 "^chrome://mochitests/content/browser/devtools/client/webconsole/test/browser/stub-generator-helpers.js": `${__dirname}/../../test/browser/stub-generator-helpers.js`, 16 "\\.css$": `${testHelpersDir}/jest-fixtures/empty-module`, 17 "\\.svg$": `${testHelpersDir}/jest-fixtures/svgMock.js`, 18 }, 19 setupFiles: ["<rootDir>jest-setup.js"], 20 };