woocommerce/plugins/woo-ai/tests/js/jestPreprocess.js

11 lines
283 B
JavaScript
Raw Normal View History

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 );