2021-05-16 12:38:04 +00:00
|
|
|
const babelOptions = {
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'@babel/preset-env',
|
|
|
|
{
|
|
|
|
targets: {
|
2023-03-21 12:37:23 +00:00
|
|
|
node: 18
|
2021-05-16 12:38:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2021-09-28 11:06:21 +00:00
|
|
|
'@babel/react',
|
|
|
|
'@babel/preset-typescript'
|
2021-05-16 12:38:04 +00:00
|
|
|
]
|
|
|
|
};
|
|
|
|
|
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);
|