Skip to content

Commit

Permalink
chore(deps): update deps and fix karma config (#5848)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletsang committed May 29, 2021
1 parent 82fe23f commit 38e5cf3
Show file tree
Hide file tree
Showing 3 changed files with 338 additions and 712 deletions.
18 changes: 10 additions & 8 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const { DefinePlugin } = require('webpack');
const { DefinePlugin, ProvidePlugin } = require('webpack');

module.exports = (config) => {
const { env } = process;

config.set({
frameworks: ['mocha', 'sinon-chai'],
frameworks: ['mocha', 'webpack', 'sinon-chai'],

files: ['test/index.js'],

Expand Down Expand Up @@ -32,23 +32,25 @@ module.exports = (config) => {
resolve: {
symlinks: false,
extensions: ['.js', '.jsx', '.ts', '.tsx'],
// for Enzyme/Cheerio
fallback: { stream: require.resolve('stream-browserify') },
fallback: {
util: require.resolve('util/'),
// for Enzyme/Cheerio
stream: require.resolve('stream-browserify'),
},
},
plugins: [
new DefinePlugin({
__DEV__: true,
'process.env.NODE_ENV': JSON.stringify('test'),
}),
new ProvidePlugin({
process: 'process/browser',
}),
],
devtool: 'inline-cheap-module-source-map',
stats: 'minimal',
},

webpackMiddleware: {
noInfo: true,
},

reporters: ['mocha', 'coverage'],

mochaReporter: {
Expand Down
35 changes: 18 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,36 +57,35 @@
"trailingComma": "all"
},
"dependencies": {
"@babel/runtime": "^7.13.8",
"@babel/runtime": "^7.14.0",
"@restart/context": "^2.1.4",
"@restart/hooks": "^0.3.26",
"@types/classnames": "^2.2.10",
"@types/invariant": "^2.2.33",
"@types/prop-types": "^15.7.3",
"@types/react": ">=16.14.4",
"@types/react-transition-group": "^4.4.1",
"@types/warning": "^3.0.0",
"classnames": "^2.2.6",
"dom-helpers": "^5.1.2",
"classnames": "^2.3.1",
"dom-helpers": "^5.2.1",
"invariant": "^2.2.4",
"prop-types": "^15.7.2",
"prop-types-extra": "^1.1.0",
"react-overlays": "^5.0.0",
"react-overlays": "^5.0.1",
"react-transition-group": "^4.4.1",
"uncontrollable": "^7.2.1",
"warning": "^4.0.3"
},
"devDependencies": {
"@4c/rollout": "^2.2.1",
"@4c/tsconfig": "^0.3.1",
"@babel/cli": "^7.13.16",
"@babel/core": "^7.14.0",
"@babel/cli": "^7.14.3",
"@babel/core": "^7.14.3",
"@babel/preset-typescript": "^7.13.0",
"@babel/register": "^7.13.16",
"@react-bootstrap/babel-preset": "^2.1.0",
"@react-bootstrap/eslint-config": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^4.22.1",
"@typescript-eslint/parser": "^4.22.1",
"@typescript-eslint/eslint-plugin": "^4.25.0",
"@typescript-eslint/parser": "^4.25.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.2",
"babel-plugin-istanbul": "^6.0.0",
Expand All @@ -97,16 +96,16 @@
"conventional-changelog-cli": "^2.1.1",
"cpy-cli": "^3.1.1",
"cross-env": "^7.0.3",
"dtslint": "^4.0.9",
"dtslint": "^4.1.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"eslint": "^7.26.0",
"eslint": "^7.27.0",
"eslint-config-4catalyzer-typescript": "^3.0.3",
"eslint-import-resolver-node": "^0.3.4",
"eslint-import-resolver-webpack": "^0.13.0",
"eslint-plugin-import": "^2.22.1",
"eslint-import-resolver-webpack": "^0.13.1",
"eslint-plugin-import": "^2.23.3",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-mocha": "^8.1.0",
"eslint-plugin-mocha": "^8.2.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.23.2",
"execa": "^5.0.0",
Expand All @@ -126,15 +125,17 @@
"lodash": "^4.17.21",
"mocha": "^8.4.0",
"prettier": "^2.3.0",
"process": "^0.11.10",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-test-renderer": "^16.14.0",
"simulant": "^0.2.2",
"sinon": "^9.2.4",
"sinon-chai": "^3.6.0",
"sinon-chai": "^3.7.0",
"stream-browserify": "^3.0.0",
"typescript": "^4.2.4",
"webpack": "^5.36.2"
"typescript": "^4.3.2",
"util": "^0.12.3",
"webpack": "^5.38.1"
},
"peerDependencies": {
"react": ">=16.14.0",
Expand Down
Loading

0 comments on commit 38e5cf3

Please sign in to comment.