mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
fix tests for core plugins
This commit is contained in:
16
scm-ui/scripts/babelPluginTransformer.js
Normal file
16
scm-ui/scripts/babelPluginTransformer.js
Normal 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
|
||||
]
|
||||
});
|
||||
Reference in New Issue
Block a user