const path = require( 'path' ); const { useE2EJestConfig } = require( '@woocommerce/e2e-environment' ); const config = useE2EJestConfig( { moduleFileExtensions: [ 'js', 'ts' ], roots: [ path.resolve( __dirname, '../specs' ) ], testMatch: [ '**/*.(test|spec).(j|t)s', '*.(test|spec).(j|t)s' ], testTimeout: 30000, transform: { '\\.[jt]sx?$': [ 'babel-jest', { configFile: path.join( __dirname, '../../../', 'babel.config.js' ), }, ], }, } ); module.exports = config;