Skip to content

Commit

Permalink
Update dev dependencies (#21)
Browse files Browse the repository at this point in the history
* Update dev dependencies
* Update karma and webpack configs to match new releases
  • Loading branch information
Steve McKinney authored Jun 18, 2020
1 parent d1347a1 commit 2d4e350
Show file tree
Hide file tree
Showing 4 changed files with 2,922 additions and 1,474 deletions.
20 changes: 6 additions & 14 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
var webpackConfig = require('./webpack.conf');

module.exports = function(config) {
config.set({
basePath: '',
browsers: ['PhantomJS'],
frameworks: ['mocha', 'chai', 'phantomjs-shim'],
plugins: [
'karma-phantomjs-shim',
'karma-phantomjs-launcher',
'karma-webpack',
'karma-mocha',
'karma-chai'
],
frameworks: ['mocha', 'chai'],
files: ['test/client/*.js'],
preprocessors: {
'test/client/*.js': ['webpack']
},
reporters: ['dots'],
webpack: webpackConfig,
webpackMiddleware: { noInfo: true },
browsers: ['ChromeHeadless'],
port: 9876,
colors: true,
webpack: { mode: 'development' },
webpackMiddleware: { stats: 'errors-only' },
singleRun: true
});
};
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"browser": "browser.js",
"scripts": {
"lint": "jshint --verbose .",
"test": "yarn run lint && NODE_ENV=test karma start && NODE_ENV=test mocha test/server/*.js -R spec"
"test-client": "NODE_ENV=test karma start",
"test-server": "NODE_ENV=test mocha test/server/*.js -R spec",
"test": "yarn run lint && yarn run test-client && yarn run test-server"
},
"repository": {
"type": "git",
Expand All @@ -30,17 +32,14 @@
"lodash": "^4.17.15"
},
"devDependencies": {
"chai": "^2.2.0",
"jshint": "^2.7.0",
"karma": "^0.13.22",
"chai": "^4.2.0",
"jshint": "^2.11.1",
"karma": "^5.1.0",
"karma-chai": "^0.1.0",
"karma-mocha": "^0.2.2",
"karma-phantomjs-launcher": "^1.0.0",
"karma-phantomjs-shim": "^1.2.0",
"karma-source-map-support": "^1.1.0",
"karma-webpack": "^1.7.0",
"mocha-phantomjs": "^3.5.3",
"phantomjs-prebuilt": "^2.1.7",
"webpack": "^1.12.15"
"karma-chrome-launcher": "^3.1.0",
"karma-mocha": "^2.0.1",
"karma-webpack": "^4.0.2",
"mocha": "^8.0.1",
"webpack": "^4.43.0"
}
}
9 changes: 0 additions & 9 deletions webpack.conf.js

This file was deleted.

Loading

0 comments on commit 2d4e350

Please sign in to comment.