mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
jest configuration for ui-packages
This commit is contained in:
18
scm-ui/scripts/jest.config.js
Normal file
18
scm-ui/scripts/jest.config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const path = require("path");
|
||||
const rootDir = path.resolve(__dirname, "..");
|
||||
const reportDirectory = path.join(rootDir, "target", "jest-reports");
|
||||
|
||||
module.exports = {
|
||||
rootDir,
|
||||
transform: { "^.+\\.js$": "./scripts/babelMonoRepoTransformer.js" },
|
||||
collectCoverage: true,
|
||||
coverageDirectory: path.join(reportDirectory, "coverage"),
|
||||
coveragePathIgnorePatterns: ["src/tests/.*"],
|
||||
reporters: [
|
||||
"default",
|
||||
[
|
||||
"jest-junit",
|
||||
{ outputDirectory: reportDirectory, outputName: "TEST-all.xml" }
|
||||
]
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user