2 collectCoverageFrom: ['src/**/*.{js,jsx}'],
3 coveragePathIgnorePatterns: [
4 '<rootDir>/node_modules/',
5 '<rootDir>/src/core/server/webpack-isomorphic-tools-config.js',
6 '<rootDir>/src/locale/',
8 "reporters": [ "default", "jest-junit" ],
13 moduleFileExtensions: [
19 // Prevent un-transpiled react-photoswipe code being required.
20 '^photoswipe$': '<rootDir>/node_modules/photoswipe',
21 // Use the client-side logger by default for tests.
22 '^core/logger$': '<rootDir>/src/core/client/logger',
23 // Alias tests for tests to be able to import helpers.
24 '^tests/(.*)$': '<rootDir>/tests/$1',
25 // Replaces the following formats with an empty module.
26 '^.+\\.(scss|css|svg|woff|woff2|mp4|webm)$': '<rootDir>/tests/emptyModule',
28 setupFilesAfterEnv: ["<rootDir>/src/setupJest.ts"],
29 testPathIgnorePatterns: [
30 '<rootDir>/node_modules/',
31 '<rootDir>/(assets|bin|config|coverage|dist|docs|flow|locale|src)/',
34 '**/[Tt]est(*).js?(x)',
35 '**/__tests__/**/*.js?(x)',
38 "^.+\\.(ts|html)$": "<rootDir>/node_modules/jest-preset-angular/preprocessor.js",
39 "^.+\\.js$": "babel-jest"
41 transformIgnorePatterns: [
42 '<rootDir>/node_modules/',