2022-10-28 20:57:08 +02:00
|
|
|
module.exports = async () => {
|
|
|
|
return {
|
|
|
|
verbose: true,
|
|
|
|
testTimeout: 20000,
|
2023-01-11 21:47:20 +01:00
|
|
|
testSequencer: "<rootDir>/tests/utils/test_sequencer.js",
|
2022-10-28 20:57:08 +02:00
|
|
|
projects: [
|
|
|
|
{
|
|
|
|
displayName: "unit",
|
|
|
|
moduleNameMapper: {
|
|
|
|
logger: "<rootDir>/js/logger.js"
|
|
|
|
},
|
|
|
|
testMatch: ["**/tests/unit/**/*.[jt]s?(x)"],
|
|
|
|
testPathIgnorePatterns: ["<rootDir>/tests/unit/mocks"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: "electron",
|
|
|
|
testMatch: ["**/tests/electron/**/*.[jt]s?(x)"],
|
|
|
|
testPathIgnorePatterns: ["<rootDir>/tests/electron/helpers/"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: "e2e",
|
|
|
|
setupFilesAfterEnv: ["<rootDir>/tests/e2e/helpers/mock-console.js"],
|
|
|
|
testMatch: ["**/tests/e2e/**/*.[jt]s?(x)"],
|
|
|
|
modulePaths: ["<rootDir>/js/"],
|
|
|
|
testPathIgnorePatterns: ["<rootDir>/tests/e2e/helpers/", "<rootDir>/tests/e2e/mocks"]
|
|
|
|
}
|
|
|
|
],
|
2023-01-26 19:43:34 +01:00
|
|
|
collectCoverageFrom: ["./clientonly/**/*.js", "./js/**/*.js", "./modules/default/**/*.js", "./serveronly/**/*.js"],
|
2022-10-28 20:57:08 +02:00
|
|
|
coverageReporters: ["lcov", "text"],
|
|
|
|
coverageProvider: "v8"
|
|
|
|
};
|
|
|
|
};
|