mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 14:05:44 +01:00
34 lines
909 B
JavaScript
34 lines
909 B
JavaScript
const path = require("path");
|
|
const rootDir = path.resolve(__dirname, "..");
|
|
const reportDirectory = path.join(rootDir, "target", "jest-reports");
|
|
const mockDirectory = path.resolve(__dirname, "src", "__mocks__");
|
|
|
|
module.exports = {
|
|
rootDir,
|
|
transform: {
|
|
"^.+\\.js$": "@scm-manager/jest-preset"
|
|
},
|
|
moduleNameMapper: {
|
|
"\\.(png|svg|jpg|gif|woff2?|eot|ttf)$": path.join(
|
|
mockDirectory,
|
|
"fileMock.js"
|
|
),
|
|
"\\.(css|scss|sass)$": path.join(mockDirectory, "styleMock.js")
|
|
},
|
|
setupFiles: [path.resolve(__dirname, "src", "setup.js")],
|
|
collectCoverage: true,
|
|
coverageDirectory: path.join(reportDirectory, "coverage"),
|
|
coveragePathIgnorePatterns: ["src/tests/.*"],
|
|
reporters: [
|
|
"default",
|
|
[
|
|
"jest-junit",
|
|
{
|
|
suiteName: "SCM-UI Package tests",
|
|
outputDirectory: reportDirectory,
|
|
outputName: "TEST-scm-ui.xml"
|
|
}
|
|
]
|
|
]
|
|
};
|