replacing phantomjs with headless chrome

master
ossdev 2018-09-19 14:20:51 +00:00
parent 851b73cddd
commit 85b7f52f5c
2 changed files with 9 additions and 6 deletions

View File

@ -53,8 +53,13 @@ module.exports = function(config) {
// - Safari (only Mac) // - Safari (only Mac)
// - PhantomJS // - PhantomJS
// - IE (only Windows) // - IE (only Windows)
browsers: ['Chrome'], browsers: ['HeadlessChrome'],
customLaunchers: {
HeadlessChrome:{
base: 'ChromeHeadless',
flags: ['--no-sandbox']
},
},
// Continuous Integration mode // Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits // if true, Karma captures browsers, runs the tests and exits

View File

@ -22,7 +22,7 @@
"bundle": "del-cli dist && node ./scripts/bundle.js . Ajv pure_getters", "bundle": "del-cli dist && node ./scripts/bundle.js . Ajv pure_getters",
"bundle-beautify": "node ./scripts/bundle.js js-beautify", "bundle-beautify": "node ./scripts/bundle.js js-beautify",
"build": "del-cli lib/dotjs/*.js '!lib/dotjs/index.js' && node scripts/compile-dots.js", "build": "del-cli lib/dotjs/*.js '!lib/dotjs/index.js' && node scripts/compile-dots.js",
"test-karma": "karma start --single-run --browsers PhantomJS", "test-karma": "karma start",
"test-browser": "del-cli .browser && npm run bundle && scripts/prepare-tests && npm run test-karma", "test-browser": "del-cli .browser && npm run bundle && scripts/prepare-tests && npm run test-karma",
"test": "npm run jshint && npm run eslint && npm run test-ts && npm run build && npm run test-cov && if-node-version 8 npm run test-browser", "test": "npm run jshint && npm run eslint && npm run test-ts && npm run build && npm run test-cov && if-node-version 8 npm run test-browser",
"prepublish": "npm run build && npm run bundle", "prepublish": "npm run build && npm run bundle",
@ -82,13 +82,11 @@
"jshint": "^2.9.4", "jshint": "^2.9.4",
"json-schema-test": "^2.0.0", "json-schema-test": "^2.0.0",
"karma": "^3.0.0", "karma": "^3.0.0",
"karma-chrome-launcher": "^2.0.0", "karma-chrome-launcher": "^2.2.0",
"karma-mocha": "^1.1.1", "karma-mocha": "^1.1.1",
"karma-phantomjs-launcher": "^1.0.0",
"karma-sauce-launcher": "^1.1.0", "karma-sauce-launcher": "^1.1.0",
"mocha": "^5.1.1", "mocha": "^5.1.1",
"nyc": "^12.0.1", "nyc": "^12.0.1",
"phantomjs-prebuilt": "^2.1.4",
"pre-commit": "^1.1.1", "pre-commit": "^1.1.1",
"require-globify": "^1.3.0", "require-globify": "^1.3.0",
"typescript": "^2.8.3", "typescript": "^2.8.3",