10 lines
255 B
JavaScript
10 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
|
||
|
});
|