Skip to content

Commit

Permalink
upgrade to webpack 4
Browse files Browse the repository at this point in the history
  • Loading branch information
odahcam committed Jun 7, 2018
1 parent 881ff1b commit 6787c8b
Show file tree
Hide file tree
Showing 7 changed files with 477 additions and 11,518 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ node_modules

coverage
esm5
bundles
umd
typings
docs

Expand Down
19 changes: 13 additions & 6 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ export default function (config) {

frameworks: ['mocha', 'karma-typescript', 'chai', 'sinon'],

files: [
// 'node_modules/expect.js/index.js',
'src/**/*.ts'
],
files: ['src/**/*.ts'],

preprocessors: {
'**/*.ts': ['karma-typescript']
Expand All @@ -34,7 +31,6 @@ export default function (config) {
require('karma-mocha'),
require('karma-chai'),
require('karma-sinon'),
require('karma-phantomjs-launcher'),
require('karma-remap-coverage'),
require('karma-typescript'),
require('karma-typescript-preprocessor'),
Expand Down Expand Up @@ -88,7 +84,18 @@ export default function (config) {
/**
* What browsers should be used
*/
browsers: ['PhantomJS'],
browsers: ['Chrome_headless'],

customLaunchers: {
Chrome_headless: {
base: 'Chrome',
flags: [
' — headless',
' — disable-gpu',
' — remote-debugging-port=9222'
]
}
},

/**
* Keep testing or not.
Expand Down
Loading

0 comments on commit 6787c8b

Please sign in to comment.