mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Add babel and jest config
This commit is contained in:
parent
b68e0a6eb5
commit
ddcdf67816
6 changed files with 61 additions and 5 deletions
10
tests/js/jestPreprocess.js
Normal file
10
tests/js/jestPreprocess.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
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 );
|
Loading…
Add table
Add a link
Reference in a new issue