const path = require('path'); module.exports = { rootDir: path.join(__dirname, '..', '..'), testEnvironment: 'jest-environment-jsdom', testMatch: [ '**/test/unit/*.js?(x)', '**/test/unit/**/*.js?(x)', ], setupFiles: ['/test/unit/jest-shim.js'], setupFilesAfterEnv: ['/test/unit/setup.js'], testPathIgnorePatterns: [ '/node_modules/', '/test/build-artifacts/', '/test/unit/jest-shim.js', '/test/unit/setup.js', ], moduleNameMapper: { '^.+\\.svg$': 'jest-transform-stub' }, transformIgnorePatterns: ['/node_modules/(?!(sinon|react-syntax-highlighter)/)'], silent: true, // set to `false` to allow console.* calls to be printed };