Skip to content

Commit dbba4d1

Browse files
committed
Add jest coverage and update dependencies
1 parent bc5f632 commit dbba4d1

File tree

3 files changed

+617
-608
lines changed

3 files changed

+617
-608
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ npm-debug.log*
44
yarn-error.log
55
/dist
66
/test/*coverage
7+
/test/coverage-jest
78
/.chrome
89

910
# Logs #

package.json

Lines changed: 38 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -59,28 +59,43 @@
5959
"testEnvironment": "node",
6060
"moduleNameMapper": {
6161
"aurelia-(.*)": "<rootDir>/node_modules/$1"
62-
}
62+
},
63+
"collectCoverage": true,
64+
"collectCoverageFrom": [
65+
"src/**/*.{js,ts}",
66+
"!**/*.spec.{js,ts}",
67+
"!**/node_modules/**",
68+
"!**/test/**"
69+
],
70+
"coverageDirectory": "<rootDir>/test/coverage-jest",
71+
"coverageReporters": [
72+
"json",
73+
"lcov",
74+
"text",
75+
"html"
76+
],
77+
"mapCoverage": true
6378
},
6479
"devDependencies": {
65-
"@types/jest": "^19.2.2",
66-
"@types/lodash": "^4.14.63",
67-
"@types/node": "^7.0.15",
80+
"@types/jest": "^19.2.3",
81+
"@types/lodash": "^4.14.64",
82+
"@types/node": "^7.0.21",
6883
"@types/webpack": "^2.2.15",
6984
"aurelia-loader-nodejs": "^1.0.1",
7085
"aurelia-pal-nodejs": "1.0.0-beta.1.0.0",
7186
"aurelia-protractor-plugin": "^1.0.3",
7287
"aurelia-template-lint-webpack-loader": "^1.0.3",
7388
"aurelia-testing": "^1.0.0-beta.3.0.1",
7489
"aurelia-webpack-plugin": "^2.0.0-rc.2",
75-
"autoprefixer": "^6.7.7",
90+
"autoprefixer": "^7.1.1",
7691
"awesome-typescript-loader": "^3.1.3",
7792
"case-sensitive-paths-webpack-plugin": "^2.0.0",
7893
"chalk": "^1.1.3",
7994
"compression-webpack-plugin": "^0.4.0",
8095
"copy-webpack-plugin": "^4.0.1",
81-
"cordova": "^6.5.0",
82-
"cross-env": "^4.0.0",
83-
"css-loader": "^0.28.0",
96+
"cordova": "^7.0.1",
97+
"cross-env": "^5.0.0",
98+
"css-loader": "^0.28.1",
8499
"expose-loader": "^0.7.3",
85100
"extract-text-webpack-plugin": "^2.1.0",
86101
"favicons-webpack-plugin": "^0.0.7",
@@ -89,42 +104,42 @@
89104
"http-server": "^0.10.0",
90105
"img-loader": "^2.0.0",
91106
"istanbul-instrumenter-loader": "^2.0.0",
92-
"jasmine-core": "^2.6.1",
93-
"jest": "^19.0.2",
107+
"jasmine-core": "^2.6.2",
108+
"jest": "^20.0.3",
94109
"json-loader": "^0.5.4",
95-
"karma": "^1.6.0",
96-
"karma-chrome-launcher": "^2.0.0",
110+
"karma": "^1.7.0",
111+
"karma-chrome-launcher": "^2.1.1",
97112
"karma-coverage-istanbul-reporter": "^1.2.1",
98113
"karma-jasmine": "^1.1.0",
99114
"karma-mocha-reporter": "^2.2.3",
100115
"karma-webpack": "^2.0.3",
101116
"loader-utils": "^1.1.0",
102117
"ncp": "^2.0.0",
103-
"node-sass": "^4.5.2",
104-
"nps": "^5.1.0",
118+
"node-sass": "^4.5.3",
119+
"nps": "^5.2.0",
105120
"nps-utils": "^1.2.0",
106-
"postcss-loader": "^1.3.3",
107-
"protractor": "^5.1.1",
108-
"sass-loader": "^6.0.3",
121+
"postcss-loader": "^2.0.5",
122+
"protractor": "^5.1.2",
123+
"sass-loader": "^6.0.5",
109124
"style-loader": "^0.17.0",
110-
"ts-jest": "^19.0.14",
111-
"ts-node": "^3.0.2",
112-
"tslib": "^1.6.1",
113-
"tslint": "^5.1.0",
125+
"ts-jest": "^20.0.4",
126+
"ts-node": "^3.0.4",
127+
"tslib": "^1.7.1",
128+
"tslint": "^5.2.0",
114129
"tslint-loader": "^3.5.3",
115130
"typescript": "^2.3.2",
116131
"typings": "^2.1.1",
117132
"url-loader": "^0.5.8",
118133
"wait-on": "^2.0.2",
119-
"webpack": "^2.4.1",
134+
"webpack": "^2.5.1",
120135
"webpack-dev-server": "^2.4.5",
121136
"webpack-notifier": "^1.5.0"
122137
},
123138
"dependencies": {
124139
"animate.css": "^3.5.2",
125140
"aurelia-animator-css": "^1.0.2",
126141
"aurelia-bootstrapper": "^2.1.1",
127-
"aurelia-dialog": "^1.0.0-rc.1.0.2",
142+
"aurelia-dialog": "^1.0.0-rc.1.0.3",
128143
"aurelia-fetch-client": "^1.1.2",
129144
"aurelia-framework": "^1.1.2",
130145
"aurelia-history-browser": "^1.0.0",

0 commit comments

Comments
 (0)