Add babel and jest config

This commit is contained in:
Emili Castells Guasch 2024-06-22 15:37:01 +02:00
parent b68e0a6eb5
commit ddcdf67816
6 changed files with 61 additions and 5 deletions

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