mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
17 lines
384 B
JavaScript
17 lines
384 B
JavaScript
/**
|
|
* Read and use .babelrc from packages
|
|
*/
|
|
const path = require("path");
|
|
const { createTransformer } = require("babel-jest");
|
|
|
|
const packagePath = path.resolve(__dirname, "..");
|
|
const packageGlob = path.join(packagePath, "*");
|
|
const currentDirectory = path.join(process.cwd());
|
|
|
|
module.exports = createTransformer({
|
|
babelrcRoots: [
|
|
packageGlob,
|
|
currentDirectory
|
|
]
|
|
});
|