2021-05-16 14:38:04 +02:00
|
|
|
const babelOptions = {
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'@babel/preset-env',
|
|
|
|
{
|
|
|
|
targets: {
|
|
|
|
node: 14
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
'@babel/react'
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
2021-07-06 10:28:51 +00:00
|
|
|
// TODO: is there a way to do this without a separate transform? i.e. can we
|
|
|
|
// just use the existing config?
|
|
|
|
module.exports = require('babel-jest').default.createTransformer(babelOptions);
|