http://gothub.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/freeCodeCamp/freeCodeCamp/blob/main/jest.transform.js
GotHub (master) Explore About Source code Back to freeCodeCamp/freeCodeCamp jest.transform.js Raw 1 const babelOptions = { 2 presets : [ 3 [ 4 '@babel/preset-env' , 5 { 6 targets : { 7 node : 18 8 } 9 } 10 ] , 11 '@babel/react' , 12 '@babel/preset-typescript' 13 ] 14 } ; 15 16 // TODO: is there a way to do this without a separate transform? i.e. can we 17 // just use the existing config? 18 module . exports = require ( 'babel-jest' ) . default . createTransformer ( babelOptions ) ;