woocommerce/plugins/woocommerce-blocks/tests/js/jestPreprocess.js

11 lines
283 B
JavaScript

const babelOptions = {
presets: [ '@babel/preset-typescript', '@wordpress/babel-preset-default' ],
plugins: [
'explicit-exports-references',
'@babel/plugin-proposal-class-properties',
],
};
module.exports =
require( 'babel-jest' ).default.createTransformer( babelOptions );