Skip to content

Commit

Permalink
Bump chai from 4.3.10 to 5.1.0 (#1307)
Browse files Browse the repository at this point in the history
* Bump chai from 4.3.10 to 5.1.0

Bumps [chai](https://github.com/chaijs/chai) from 4.3.10 to 5.1.0.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/main/History.md)
- [Commits](chaijs/chai@v4.3.10...v5.1.0)

---
updated-dependencies:
- dependency-name: chai
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Remove karma-chai and karma-sinon

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alejandro Celaya <[email protected]>
  • Loading branch information
dependabot[bot] and acelaya authored Mar 1, 2024
1 parent 364ba93 commit f735b11
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 66 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@typescript-eslint/parser": "^7.1.0",
"babel-plugin-istanbul": "^6.1.1",
"babel-plugin-mockable-imports": "^2.0.1",
"chai": "^4.3.10",
"chai": "^5.1.0",
"enzyme": "^3.11.0",
"enzyme-adapter-preact-pure": "^4.1.0",
"eslint": "^8.57.0",
Expand All @@ -52,12 +52,10 @@
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"karma": "^6.4.2",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.2.0",
"karma-coverage-istanbul-reporter": "^3.0.3",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-sinon": "^1.0.5",
"karma-source-map-support": "^1.4.0",
"mocha": "^10.2.0",
"prettier": "^2.8.8",
Expand Down
2 changes: 1 addition & 1 deletion via/static/scripts/karma.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = function (config) {
// Base path that will be used to resolve all patterns (eg. files, exclude)
basePath: './',

frameworks: ['mocha', 'chai', 'sinon', 'source-map-support'],
frameworks: ['mocha', 'source-map-support'],

files: [
// Test bundles.
Expand Down
9 changes: 8 additions & 1 deletion via/static/scripts/setup-tests.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import { assert } from 'chai';
import { configure } from 'enzyme';
import { Adapter } from 'enzyme-adapter-preact-pure';
import 'preact/debug';
import sinon from 'sinon';

// Expose sinon assertions.
// Expose sinon assertions and add extra assert methods.
sinon.assert.expose(assert, { prefix: null });

// Expose these globally, to avoid dependency on outdated karma-chai and
// karma-sinon plugins
globalThis.assert = assert;
globalThis.sinon = sinon;

// Configure Enzyme for UI tests.
configure({ adapter: new Adapter() });

Expand Down
94 changes: 33 additions & 61 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3215,10 +3215,10 @@ __metadata:
languageName: node
linkType: hard

"assertion-error@npm:^1.1.0":
version: 1.1.0
resolution: "assertion-error@npm:1.1.0"
checksum: fd9429d3a3d4fd61782eb3962ae76b6d08aa7383123fca0596020013b3ebd6647891a85b05ce821c47d1471ed1271f00b0545cf6a4326cf2fc91efcc3b0fbecf
"assertion-error@npm:^2.0.1":
version: 2.0.1
resolution: "assertion-error@npm:2.0.1"
checksum: a0789dd882211b87116e81e2648ccb7f60340b34f19877dd020b39ebb4714e475eb943e14ba3e22201c221ef6645b7bfe10297e76b6ac95b48a9898c1211ce66
languageName: node
linkType: hard

Expand Down Expand Up @@ -3715,18 +3715,16 @@ __metadata:
languageName: node
linkType: hard

"chai@npm:^4.3.10":
version: 4.3.10
resolution: "chai@npm:4.3.10"
"chai@npm:^5.1.0":
version: 5.1.0
resolution: "chai@npm:5.1.0"
dependencies:
assertion-error: ^1.1.0
check-error: ^1.0.3
deep-eql: ^4.1.3
get-func-name: ^2.0.2
loupe: ^2.3.6
pathval: ^1.1.1
type-detect: ^4.0.8
checksum: 536668c60a0d985a0fbd94418028e388d243a925d7c5e858c7443e334753511614a3b6a124bac9ca077dfc4c37acc367d62f8c294960f440749536dc181dfc6d
assertion-error: ^2.0.1
check-error: ^2.0.0
deep-eql: ^5.0.1
loupe: ^3.1.0
pathval: ^2.0.0
checksum: f45c8c6ca8b35933efa533eba26a3ecf78378c86acf1d5d0ca82ae0be94a8d25f574f098e3f7e0294a3774e43931eb2e299c991516f22ac24c9042dce8a23ce0
languageName: node
linkType: hard

Expand All @@ -3751,12 +3749,10 @@ __metadata:
languageName: node
linkType: hard

"check-error@npm:^1.0.3":
version: 1.0.3
resolution: "check-error@npm:1.0.3"
dependencies:
get-func-name: ^2.0.2
checksum: e2131025cf059b21080f4813e55b3c480419256914601750b0fee3bd9b2b8315b531e551ef12560419b8b6d92a3636511322752b1ce905703239e7cc451b6399
"check-error@npm:^2.0.0":
version: 2.0.0
resolution: "check-error@npm:2.0.0"
checksum: 120f252c2e1ad82ef82a616662805345c6c361347bfd6203f8a28c53a158811dd0ea21278f29c8136cc9df12fc7f077d1a07124569d98fb396b3072d08f2f092
languageName: node
linkType: hard

Expand Down Expand Up @@ -4253,12 +4249,10 @@ __metadata:
languageName: node
linkType: hard

"deep-eql@npm:^4.1.3":
version: 4.1.3
resolution: "deep-eql@npm:4.1.3"
dependencies:
type-detect: ^4.0.0
checksum: 7f6d30cb41c713973dc07eaadded848b2ab0b835e518a88b91bea72f34e08c4c71d167a722a6f302d3a6108f05afd8e6d7650689a84d5d29ec7fe6220420397f
"deep-eql@npm:^5.0.1":
version: 5.0.1
resolution: "deep-eql@npm:5.0.1"
checksum: 8009e8a8bf3e0f591a122e7788e304a2bed1299b7774f039be96f9ef35c00fb254292fb1568952651aea0c1d1eb23d0bca484bbdd2cf4fcee685c6f2c43670f3
languageName: node
linkType: hard

Expand Down Expand Up @@ -5740,7 +5734,7 @@ __metadata:
languageName: node
linkType: hard

"get-func-name@npm:^2.0.0, get-func-name@npm:^2.0.2":
"get-func-name@npm:^2.0.1":
version: 2.0.2
resolution: "get-func-name@npm:2.0.2"
checksum: 3f62f4c23647de9d46e6f76d2b3eafe58933a9b3830c60669e4180d6c601ce1b4aa310ba8366143f55e52b139f992087a9f0647274e8745621fa2af7e0acf13b
Expand Down Expand Up @@ -7209,16 +7203,6 @@ __metadata:
languageName: node
linkType: hard

"karma-chai@npm:^0.1.0":
version: 0.1.0
resolution: "karma-chai@npm:0.1.0"
peerDependencies:
chai: "*"
karma: ">=0.10.9"
checksum: 7fae0b4acea35121218c5284e49c7a0e4ad5806abca50ee1451e314e63b4e7b72aaccda90a78d0099cc3a02eb07ebea92cc8877b74cfd62db52fe7bb0907a287
languageName: node
linkType: hard

"karma-chrome-launcher@npm:^3.2.0":
version: 3.2.0
resolution: "karma-chrome-launcher@npm:3.2.0"
Expand Down Expand Up @@ -7263,16 +7247,6 @@ __metadata:
languageName: node
linkType: hard

"karma-sinon@npm:^1.0.5":
version: 1.0.5
resolution: "karma-sinon@npm:1.0.5"
peerDependencies:
karma: ">=0.10"
sinon: "*"
checksum: 86ee1ec40d5cb2c9c9ff6bc1cfd6aabd310e28d1a140d06322a2769e89d27eb699feab3610633d0cfabf4f302e14c48c332b588da3c0bab710a78f3d04138774
languageName: node
linkType: hard

"karma-source-map-support@npm:^1.4.0":
version: 1.4.0
resolution: "karma-source-map-support@npm:1.4.0"
Expand Down Expand Up @@ -7564,12 +7538,12 @@ __metadata:
languageName: node
linkType: hard

"loupe@npm:^2.3.6":
version: 2.3.6
resolution: "loupe@npm:2.3.6"
"loupe@npm:^3.1.0":
version: 3.1.0
resolution: "loupe@npm:3.1.0"
dependencies:
get-func-name: ^2.0.0
checksum: cc83f1b124a1df7384601d72d8d1f5fe95fd7a8185469fec48bb2e4027e45243949e7a013e8d91051a138451ff0552310c32aa9786e60b6a30d1e801bdc2163f
get-func-name: ^2.0.1
checksum: e23814854ab2571e3f753b7c198bfe016c708f3a435501624dd6ff79b6a5544e14b0f28cfc0432eb22e9da9177b1533491871aca3f94d56b19fecc0d4a766e58
languageName: node
linkType: hard

Expand Down Expand Up @@ -8713,10 +8687,10 @@ __metadata:
languageName: node
linkType: hard

"pathval@npm:^1.1.1":
version: 1.1.1
resolution: "pathval@npm:1.1.1"
checksum: 090e3147716647fb7fb5b4b8c8e5b55e5d0a6086d085b6cd23f3d3c01fcf0ff56fd3cc22f2f4a033bd2e46ed55d61ed8379e123b42afe7d531a2a5fc8bb556d6
"pathval@npm:^2.0.0":
version: 2.0.0
resolution: "pathval@npm:2.0.0"
checksum: 682b6a6289de7990909effef7dae9aa7bb6218c0426727bccf66a35b34e7bfbc65615270c5e44e3c9557a5cb44b1b9ef47fc3cb18bce6ad3ba92bcd28467ed7d
languageName: node
linkType: hard

Expand Down Expand Up @@ -10528,7 +10502,7 @@ __metadata:
languageName: node
linkType: hard

"type-detect@npm:4.0.8, type-detect@npm:^4.0.0, type-detect@npm:^4.0.8":
"type-detect@npm:4.0.8, type-detect@npm:^4.0.8":
version: 4.0.8
resolution: "type-detect@npm:4.0.8"
checksum: 62b5628bff67c0eb0b66afa371bd73e230399a8d2ad30d852716efcc4656a7516904570cd8631a49a3ce57c10225adf5d0cbdcb47f6b0255fe6557c453925a15
Expand Down Expand Up @@ -10915,7 +10889,7 @@ __metadata:
autoprefixer: ^10.4.16
babel-plugin-istanbul: ^6.1.1
babel-plugin-mockable-imports: ^2.0.1
chai: ^4.3.10
chai: ^5.1.0
classnames: ^2.5.1
enzyme: ^3.11.0
enzyme-adapter-preact-pure: ^4.1.0
Expand All @@ -10928,12 +10902,10 @@ __metadata:
focus-visible: ^5.2.0
gulp: ^4.0.2
karma: ^6.4.2
karma-chai: ^0.1.0
karma-chrome-launcher: ^3.2.0
karma-coverage-istanbul-reporter: ^3.0.3
karma-mocha: ^2.0.1
karma-mocha-reporter: ^2.2.5
karma-sinon: ^1.0.5
karma-source-map-support: ^1.4.0
mocha: ^10.2.0
postcss: ^8.4.31
Expand Down

0 comments on commit f735b11

Please sign in to comment.