gecko-dev/devtools/client/debugger/jest-test.config.js
Michael Ratcliffe 10ece9e5b4 Bug 1563776 - Fix debugger tests when fx source folder is called firefox r=jlast
### Changes

- Tests under `<rootDir>/src/client/firefox/` were previously blocked. Maybe we should just remove them as they don't match the debugger's API any longer.

### Test Results

    Test Suites: 205 passed, 205 total
    Tests:       8 skipped, 1736 passed, 1744 total
    Snapshots:   440 passed, 440 total
    Time:        33.115s
    Ran all test suites in 5 projects.

### Try

https://treeherder.mozilla.org/#/jobs?repo=try&revision=03aa91011325b983bd8aae54bd19c3b6f573c513&group_state=expanded

Differential Revision: https://phabricator.services.mozilla.com/D37086

--HG--
extra : moz-landing-system : lando
2019-07-16 19:47:17 +00:00

45 lines
1.3 KiB
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
const { resolve } = require("path");
const rootDir = resolve(__dirname);
module.exports = {
rootDir,
displayName: "test",
testURL: "http://localhost/",
testPathIgnorePatterns: [
"/node_modules/",
"/helpers/",
"/fixtures/",
"src/test/mochitest/examples/",
"<rootDir>/firefox",
"package.json",
"<rootDir>/packages",
],
modulePathIgnorePatterns: [
"test/mochitest",
"<rootDir>/firefox/",
"<rootDir>/src/client/firefox/",
],
collectCoverageFrom: [
"src/**/*.js",
"!src/**/fixtures/*.js",
"!src/test/**/*.js",
"!src/components/stories/**/*.js",
"!**/*.mock.js",
"!**/*.spec.js",
],
transformIgnorePatterns: ["node_modules/(?!(devtools-|react-aria-))"],
setupTestFrameworkScriptFile: "<rootDir>/src/test/tests-setup.js",
setupFiles: ["<rootDir>/src/test/shim.js", "jest-localstorage-mock"],
snapshotSerializers: [
"jest-serializer-babel-ast",
"enzyme-to-json/serializer",
],
moduleNameMapper: {
"\\.css$": "<rootDir>/src/test/__mocks__/styleMock.js",
"\\.svg$": "<rootDir>/src/test/__mocks__/svgMock.js",
},
};