fix tests for core plugins

This commit is contained in:
Sebastian Sdorra
2019-10-09 11:22:16 +02:00
parent d7e62fadb0
commit 9a56ea50e7
13 changed files with 87 additions and 18 deletions

View File

@@ -0,0 +1,16 @@
/**
* 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
]
});