woocommerce-paypal-payments/tests/js/jestPreprocess.js

11 lines
307 B
JavaScript
Raw Normal View History

2024-06-22 15:37:01 +02:00
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 );