UNPKG

@wordpress/scripts

Version:
26 lines (21 loc) 481 B
/** * External dependencies */ const path = require( 'path' ); /** * Internal dependencies */ const { hasBabelConfig } = require( '../utils' ); const jestUnitConfig = { preset: '@wordpress/jest-preset-default', reporters: [ 'default', path.join( __dirname, 'jest-github-actions-reporter', 'index.js' ), ], }; if ( ! hasBabelConfig() ) { jestUnitConfig.transform = { '\\.[jt]sx?$': path.join( __dirname, 'babel-transform' ), }; } module.exports = jestUnitConfig;