Skip to content

Commit 38e5cf3

Browse files
authored
chore(deps): update deps and fix karma config (react-bootstrap#5848)
1 parent 82fe23f commit 38e5cf3

File tree

3 files changed

+338
-712
lines changed

3 files changed

+338
-712
lines changed

karma.conf.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
const { DefinePlugin } = require('webpack');
1+
const { DefinePlugin, ProvidePlugin } = require('webpack');
22

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

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

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

@@ -32,23 +32,25 @@ module.exports = (config) => {
3232
resolve: {
3333
symlinks: false,
3434
extensions: ['.js', '.jsx', '.ts', '.tsx'],
35-
// for Enzyme/Cheerio
36-
fallback: { stream: require.resolve('stream-browserify') },
35+
fallback: {
36+
util: require.resolve('util/'),
37+
// for Enzyme/Cheerio
38+
stream: require.resolve('stream-browserify'),
39+
},
3740
},
3841
plugins: [
3942
new DefinePlugin({
4043
__DEV__: true,
4144
'process.env.NODE_ENV': JSON.stringify('test'),
4245
}),
46+
new ProvidePlugin({
47+
process: 'process/browser',
48+
}),
4349
],
4450
devtool: 'inline-cheap-module-source-map',
4551
stats: 'minimal',
4652
},
4753

48-
webpackMiddleware: {
49-
noInfo: true,
50-
},
51-
5254
reporters: ['mocha', 'coverage'],
5355

5456
mochaReporter: {

package.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -57,36 +57,35 @@
5757
"trailingComma": "all"
5858
},
5959
"dependencies": {
60-
"@babel/runtime": "^7.13.8",
60+
"@babel/runtime": "^7.14.0",
6161
"@restart/context": "^2.1.4",
6262
"@restart/hooks": "^0.3.26",
63-
"@types/classnames": "^2.2.10",
6463
"@types/invariant": "^2.2.33",
6564
"@types/prop-types": "^15.7.3",
6665
"@types/react": ">=16.14.4",
6766
"@types/react-transition-group": "^4.4.1",
6867
"@types/warning": "^3.0.0",
69-
"classnames": "^2.2.6",
70-
"dom-helpers": "^5.1.2",
68+
"classnames": "^2.3.1",
69+
"dom-helpers": "^5.2.1",
7170
"invariant": "^2.2.4",
7271
"prop-types": "^15.7.2",
7372
"prop-types-extra": "^1.1.0",
74-
"react-overlays": "^5.0.0",
73+
"react-overlays": "^5.0.1",
7574
"react-transition-group": "^4.4.1",
7675
"uncontrollable": "^7.2.1",
7776
"warning": "^4.0.3"
7877
},
7978
"devDependencies": {
8079
"@4c/rollout": "^2.2.1",
8180
"@4c/tsconfig": "^0.3.1",
82-
"@babel/cli": "^7.13.16",
83-
"@babel/core": "^7.14.0",
81+
"@babel/cli": "^7.14.3",
82+
"@babel/core": "^7.14.3",
8483
"@babel/preset-typescript": "^7.13.0",
8584
"@babel/register": "^7.13.16",
8685
"@react-bootstrap/babel-preset": "^2.1.0",
8786
"@react-bootstrap/eslint-config": "^2.0.0",
88-
"@typescript-eslint/eslint-plugin": "^4.22.1",
89-
"@typescript-eslint/parser": "^4.22.1",
87+
"@typescript-eslint/eslint-plugin": "^4.25.0",
88+
"@typescript-eslint/parser": "^4.25.0",
9089
"babel-eslint": "^10.1.0",
9190
"babel-loader": "^8.2.2",
9291
"babel-plugin-istanbul": "^6.0.0",
@@ -97,16 +96,16 @@
9796
"conventional-changelog-cli": "^2.1.1",
9897
"cpy-cli": "^3.1.1",
9998
"cross-env": "^7.0.3",
100-
"dtslint": "^4.0.9",
99+
"dtslint": "^4.1.0",
101100
"enzyme": "^3.11.0",
102101
"enzyme-adapter-react-16": "^1.15.6",
103-
"eslint": "^7.26.0",
102+
"eslint": "^7.27.0",
104103
"eslint-config-4catalyzer-typescript": "^3.0.3",
105104
"eslint-import-resolver-node": "^0.3.4",
106-
"eslint-import-resolver-webpack": "^0.13.0",
107-
"eslint-plugin-import": "^2.22.1",
105+
"eslint-import-resolver-webpack": "^0.13.1",
106+
"eslint-plugin-import": "^2.23.3",
108107
"eslint-plugin-jsx-a11y": "^6.4.1",
109-
"eslint-plugin-mocha": "^8.1.0",
108+
"eslint-plugin-mocha": "^8.2.0",
110109
"eslint-plugin-prettier": "^3.4.0",
111110
"eslint-plugin-react": "^7.23.2",
112111
"execa": "^5.0.0",
@@ -126,15 +125,17 @@
126125
"lodash": "^4.17.21",
127126
"mocha": "^8.4.0",
128127
"prettier": "^2.3.0",
128+
"process": "^0.11.10",
129129
"react": "^16.14.0",
130130
"react-dom": "^16.14.0",
131131
"react-test-renderer": "^16.14.0",
132132
"simulant": "^0.2.2",
133133
"sinon": "^9.2.4",
134-
"sinon-chai": "^3.6.0",
134+
"sinon-chai": "^3.7.0",
135135
"stream-browserify": "^3.0.0",
136-
"typescript": "^4.2.4",
137-
"webpack": "^5.36.2"
136+
"typescript": "^4.3.2",
137+
"util": "^0.12.3",
138+
"webpack": "^5.38.1"
138139
},
139140
"peerDependencies": {
140141
"react": ">=16.14.0",

0 commit comments

Comments
 (0)