const path = require( 'path' ); const jestE2EConfig = { preset: 'jest-puppeteer', setupFilesAfterEnv: [ '/config/bootstrap.js', ], testMatch: [ '/specs/**/__tests__/**/*.js', '/specs/**/?(*.)(spec|test).js', '/specs/**/test/*.js', ], transform: { '^.+\\.[jt]sx?$': path.join( __dirname, 'babel-transform' ), }, transformIgnorePatterns: [ 'node_modules', 'scripts/config/puppeteer.config.js', ], }; module.exports = jestE2EConfig;