actual/jest-babel-transformer.js
2022-04-28 22:44:38 -04:00

9 lines
255 B
JavaScript

const { join, resolve } = require('path');
const { createTransformer } = require('babel-jest');
const packagePath = resolve('./');
const packageGlob = join(packagePath, 'packages/*');
module.exports = createTransformer({
babelrcRoots: packageGlob
});