Skip to content

Commit e5a44fd

Browse files
committed
fix: test
1 parent 7838a78 commit e5a44fd

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

e2e/protractor.conf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ exports.config = {
1313
'./src/**/*.e2e-spec.ts'
1414
],
1515
capabilities: {
16+
chromeOptions: {
17+
args: [ "--headless" ]
18+
},
1619
browserName: 'chrome'
1720
},
1821
directConnect: true,
@@ -33,4 +36,4 @@ exports.config = {
3336
}
3437
}));
3538
}
36-
};
39+
};

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = function (config) {
1616
clearContext: false // leave Jasmine Spec Runner output visible in browser
1717
},
1818
coverageIstanbulReporter: {
19-
dir: require('path').join(__dirname, './coverage/spec'),
19+
dir: require('path').join(__dirname, './coverage'),
2020
reports: ['html', 'lcovonly', 'text-summary'],
2121
fixWebpackSourcePaths: true
2222
},

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@
110110
"static": "static ./dist",
111111
"test": "echo Please use yarn run test:unit",
112112
"test:unit": "ng test",
113-
"ci:test": "ng test --watch=false --code-coverage",
113+
"test:e2e": "ng e2e",
114+
"ci:test": "ng test --watch=false --code-coverage --browsers=ChromeHeadless",
114115
"ci:e2e": "CHROME_BIN=chromium-browser DISPLAY=:99.0 ng e2e"
115116
},
116117
"dependencies": {

0 commit comments

Comments
 (0)