mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
- fix newsfeed and calendar e2e tests so they don't need `--forceExit` anymore - `--forceExit` should stay in test runs to avoid running until test limit in case of errors - remove mocking console, not needed anymore - configFactory-stuff should not run in browser (otherwise we get errors `[ReferenceError: exports is not defined]`)
33 lines
1023 B
JavaScript
33 lines
1023 B
JavaScript
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",
|
|
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"
|
|
};
|
|
};
|