tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

jest.config.js (722B)


      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 sharedJestConfig = require(
      9  `${__dirname}/../../../shared/test-helpers/shared-jest.config`
     10 );
     11 
     12 module.exports = {
     13  ...sharedJestConfig,
     14  moduleNameMapper: {
     15    // This needs to be set before the other rules
     16    "^resource://devtools/shared/event-emitter": `${__dirname}/node_modules/devtools-modules/src/utils/event-emitter`,
     17    ...sharedJestConfig.moduleNameMapper,
     18  },
     19  setupFiles: ["<rootDir>setup.js"],
     20  snapshotSerializers: ["enzyme-to-json/serializer"],
     21 };