4
3
Fork 3

Enable coverage for Jest (#5442)

Dieser Commit ist enthalten in:
Yamagishi Kazutoshi 2017-10-18 18:39:36 +09:00 committet von Eugen Rochko
Ursprung e7099d8d9e
Commit 402da46ff6
2 geänderte Dateien mit 9 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -14,4 +14,12 @@ module.exports = {
'raf/polyfill',
],
setupTestFrameworkScriptFile: '<rootDir>/app/javascript/mastodon/test_setup.js',
collectCoverageFrom: [
'app/javascript/mastodon/**/*.js',
'!app/javascript/mastodon/features/emoji/emoji_compressed.js',
'!app/javascript/mastodon/locales/locale-data/*.js',
'!app/javascript/mastodon/service_worker/entry.js',
'!app/javascript/mastodon/test_setup.js',
],
coverageDirectory: '<rootDir>/coverage',
};

Datei anzeigen

@ -9,7 +9,7 @@
"start": "node ./streaming/index.js",
"test": "npm run test:lint && npm run test:jest",
"test:lint": "eslint -c .eslintrc.yml --ext=js app/javascript/ config/webpack/ spec/javascript/ streaming/",
"test:jest": "cross-env NODE_ENV=test jest",
"test:jest": "cross-env NODE_ENV=test jest --coverage",
"postinstall": "npm rebuild node-sass"
},
"repository": {