Skip to content

Commit 15da9ed

Browse files
author
veeck
committed
Call jest directly instead of nyc
1 parent 5d11dec commit 15da9ed

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module.exports = async () => {
2525
testPathIgnorePatterns: ["<rootDir>/tests/e2e/helpers/", "<rootDir>/tests/e2e/mocks"]
2626
}
2727
],
28-
collectCoverageFrom: ["./{clientonly,js,modules,serveronly}/**/*.", "!**/node_modules/**", "!**/vendor/**"]
28+
collectCoverageFrom: ["./{clientonly,js,modules,serveronly}/**/*.", "!**/node_modules/**", "!**/vendor/**"],
29+
coverageReporters: ["lcov", "text"]
2930
};
3031
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"install-fonts": "echo \"Installing fonts ...\n\" && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier",
1414
"postinstall": "npm run install-vendor && npm run install-fonts && echo \"MagicMirror² installation finished successfully! \n\"",
1515
"test": "NODE_ENV=test jest -i --forceExit",
16-
"test:coverage": "NODE_ENV=test nyc --reporter=lcov --reporter=text jest -i --forceExit",
16+
"test:coverage": "NODE_ENV=test jest --coverage -i --forceExit",
1717
"test:electron": "NODE_ENV=test jest --selectProjects electron -i --forceExit",
1818
"test:e2e": "NODE_ENV=test jest --selectProjects e2e -i --forceExit",
1919
"test:unit": "NODE_ENV=test jest --selectProjects unit -i --forceExit",

0 commit comments

Comments
 (0)