mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 10:07:46 -05:00
* chore(deps): update jest monorepo to v29 * chore: install jest-environment-jsdom * chore: update snapshots * fix: update config to transform nanoid+uuid * chore: update babel's node target This does not seem strictly necessary, but is probably for the best. Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
19 lines
389 B
JavaScript
19 lines
389 B
JavaScript
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);
|