module.exports = { coveragePathIgnorePatterns: [ '/node_modules/', '/tests/', '/config/', ], collectCoverageFrom: ['src/**/*.js'], moduleDirectories: ['src', 'vendor', 'node_modules'], moduleFileExtensions: ['js', 'json'], moduleNameMapper: { // Alias tests for tests to be able to import helpers. '^tests/(.*)$': '/tests/$1', }, setupFilesAfterEnv: ['/tests/setup.js'], testPathIgnorePatterns: [ '/node_modules/', '/tests/fixtures/', '/(bin|coverage|dist|docs|src)/', '/vendor/', '/web-ext/', ], testMatch: [ '/**/[Tt]est(*).js?(x)', '/**/__tests__/**/*.js?(x)', ], transform: { '^.+\\.js$': 'babel-jest', '^.+\\.txt$': '/tests/jest-raw-loader.js', }, transformIgnorePatterns: ['/node_modules/'], testEnvironment: 'node', verbose: false, };