123456789101112131415161718192021222324252627282930313233 |
- module.exports = async () => {
- return {
- verbose: true,
- testTimeout: 20000,
- testSequencer: "<rootDir>/tests/utils/test_sequencer.js",
- projects: [
- {
- displayName: "unit",
- globalSetup: "<rootDir>/tests/unit/helpers/global-setup.js",
- moduleNameMapper: {
- logger: "<rootDir>/js/logger.js"
- },
- testMatch: ["**/tests/unit/**/*.[jt]s?(x)"],
- testPathIgnorePatterns: ["<rootDir>/tests/unit/mocks", "<rootDir>/tests/unit/helpers"]
- },
- {
- 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"]
- }
- ],
- collectCoverageFrom: ["./clientonly/**/*.js", "./js/**/*.js", "./modules/default/**/*.js", "./serveronly/**/*.js"],
- coverageReporters: ["lcov", "text"],
- coverageProvider: "v8"
- };
- };
|