10000 Run tests in PhantomJS instead of Chrome · packetloop/angular-webpack@6f3d088 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 21, 2019. It is now read-only.

Commit 6f3d088

Browse files
committed
Run tests in PhantomJS instead of Chrome
1 parent 46d506d commit 6f3d088

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ open ./coverage/index.html
5151
- [x] FIX dynamic Angular modules loading (fixed in #2)
5252
- [x] Allow to use HAML templates
5353
- [x] BabelJS and full ES6/7 support
54+
- [x] Running tests in PhantomJS
5455

5556

5657
### Demo build

karma.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ module.exports = function (config) {
4848
},
4949
webpackMiddleware: {
5050
stats: {
51+
chunkModules: false,
5152
colors: true
5253
}
5354
},
@@ -69,7 +70,7 @@ module.exports = function (config) {
6970
colors: true,
7071
logLevel: config.LOG_INFO,
7172
autoWatch: false,
72-
browsers: ['Chrome'],
73+
browsers: ['PhantomJS'],
7374
singleRun: true
7475
});
7576
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@
3333
"isparta-loader": "^0.2.0",
3434
"jasmine-core": "^2.3.4",
3535
"karma": "^0.13.3",
36-
"karma-chrome-launcher": "^0.2.0",
3736
"karma-coverage": "^0.4.2",
3837
"karma-jasmine": "^0.3.6",
38+
"karma-phantomjs-launcher": "^0.2.0",
3939
"karma-sourcemap-loader": "^0.3.5",
4040
"karma-webpack": "^1.7.0",
4141
"merge-stream": "^0.1.8",
4242
"ng-cache-loader": "0.0.9",
4343
"null-loader": "^0.1.1",
44+
"phantomjs": "^1.9.17",
4445
"sass-loader": "^1.0.3",
4546
"style-loader": "^0.12.3",
4647
"url-loader": "^0.5.6",

spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var testsContext;
22

3+
require('babel-core/polyfill');
34
require('./vendor/angular.src');
45
require('angular-mocks');
56

0 commit comments

Comments
 (0)
0