freeCodeCamp/jest.transform.js

19 lines
389 B
JavaScript
Raw Permalink Normal View History

const babelOptions = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 18
}
}
],
'@babel/react',
'@babel/preset-typescript'
]
};
// 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);