module.exports = { cacheDirectory: '.cache/jest', clearMocks: true, moduleNameMapper: { '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '/__mocks__/fileMock.js', '\\.(css|scss)$': '/__mocks__/styleMock.js', '\\.(md)$': '/__mocks__/htmlMock.js', }, projects: [ '', '/examples/cra-kitchen-sink', '/examples/html-kitchen-sink', '/examples/riot-kitchen-sink', '/examples/svelte-kitchen-sink', '/examples/vue-kitchen-sink', '/examples/angular-cli', '/examples/preact-kitchen-sink', ], roots: [ '/addons', '/app', '/lib', '/examples/official-storybook', ], snapshotSerializers: ['jest-emotion'], transform: { '^.+\\.jsx?$': '/scripts/babel-jest.js', }, testPathIgnorePatterns: ['/node_modules/', '/dist/', 'addon-jest.test.js', '/cli/test/'], collectCoverage: true, collectCoverageFrom: [ 'app/**/*.{js,jsx}', 'lib/**/*.{js,jsx}', 'addons/**/*.{js,jsx}', '!**/cli/test/**', '!**/dist/**', '!**/generators/**', '!app/**/__mocks__ /', ], coverageDirectory: 'coverage', testEnvironment: 'jsdom', setupTestFrameworkScriptFile: './scripts/jest.init.js', setupFiles: ['raf/polyfill'], testURL: 'http://localhost', modulePathIgnorePatterns: ['/dist/.*/__mocks__/'], moduleFileExtensions: ['js', 'jsx', 'json', 'node'], };