actual/jest-babel-transformer.js

10 lines
255 B
JavaScript
Raw Permalink Normal View History

2022-04-29 02:44:38 +00:00
const { join, resolve } = require('path');
const { createTransformer } = require('babel-jest');
const packagePath = resolve('./');
const packageGlob = join(packagePath, 'packages/*');
module.exports = createTransformer({
babelrcRoots: packageGlob
});