2020-09-04 02:31:09 +00:00
|
|
|
const path = require( 'path' );
|
2021-04-26 16:41:38 +00:00
|
|
|
const { useE2EJestConfig } = require( '@woocommerce/e2e-environment' );
|
2020-09-04 02:31:09 +00:00
|
|
|
|
2021-04-26 16:41:38 +00:00
|
|
|
const config = useE2EJestConfig( {
|
2021-03-17 19:22:09 +00:00
|
|
|
moduleFileExtensions: [ 'js', 'ts' ],
|
2020-09-04 02:31:09 +00:00
|
|
|
roots: [ path.resolve( __dirname, '../specs' ) ],
|
2021-03-17 19:22:09 +00:00
|
|
|
testMatch: [ '**/*.(test|spec).(j|t)s', '*.(test|spec).(j|t)s' ],
|
2020-09-04 02:31:09 +00:00
|
|
|
testTimeout: 30000,
|
2021-04-05 00:09:36 +00:00
|
|
|
transform: {
|
|
|
|
'\\.[jt]sx?$': [
|
|
|
|
'babel-jest',
|
|
|
|
{
|
|
|
|
configFile: path.join(
|
|
|
|
__dirname,
|
|
|
|
'../../../',
|
|
|
|
'babel.config.js'
|
|
|
|
),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-04-26 16:41:38 +00:00
|
|
|
} );
|
|
|
|
|
|
|
|
module.exports = config;
|