From 83f7978e54ba62dfc0b5fc31dd31da5227f70e22 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:40:30 -0800 Subject: [PATCH] Bump chai from 4.3.10 to 5.0.3 (#381) * Bump chai from 4.3.10 to 5.0.3 Bumps [chai](https://github.com/chaijs/chai) from 4.3.10 to 5.0.3. - [Release notes](https://github.com/chaijs/chai/releases) - [Changelog](https://github.com/chaijs/chai/blob/main/History.md) - [Commits](https://github.com/chaijs/chai/compare/v4.3.10...v5.0.3) --- updated-dependencies: - dependency-name: chai dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * fix specs --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: jonathan schatz --- package.json | 2 +- packages/global-jsdom/package.json | 6 +-- packages/global-jsdom/test/setup.cjs | 3 -- packages/global-jsdom/test/setup.mjs | 3 -- yarn.lock | 77 ++++++++++++---------------- 5 files changed, 36 insertions(+), 55 deletions(-) delete mode 100644 packages/global-jsdom/test/setup.cjs delete mode 100644 packages/global-jsdom/test/setup.mjs diff --git a/package.json b/package.json index e7da06d..62a3b33 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "Rico Sta. Cruz " ], "devDependencies": { - "chai": "^4.3.10", + "chai": "^5.0.3", "eslint": "^8.56.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-plugin-import": "^2.29.1", diff --git a/packages/global-jsdom/package.json b/packages/global-jsdom/package.json index 8b2f4aa..26a4719 100644 --- a/packages/global-jsdom/package.json +++ b/packages/global-jsdom/package.json @@ -34,7 +34,7 @@ "Rico Sta. Cruz " ], "devDependencies": { - "chai": "^4.4.1", + "chai": "^5.0.3", "eslint": "^8.56.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-plugin-import": "^2.29.1", @@ -61,8 +61,8 @@ }, "scripts": { "test": "yarn test:esm && yarn test:commonjs", - "test:esm": "yarn mocha --require test/setup.mjs test/*.test.mjs", - "test:commonjs": "yarn mocha --require test/setup.cjs test/*.test.cjs", + "test:esm": "yarn mocha --require chai/register-expect.js test/*.test.mjs", + "test:commonjs": "yarn mocha --require chai/register-expect.js test/*.test.cjs", "lint": "yarn eslint --ext=cjs,mjs --cache .eslintrc.cjs commonjs/ esm/ test/", "lint:fix": "yarn eslint --ext=cjs,mjs --cache --fix .eslintrc.cjs commonjs/ esm/ test/" } diff --git a/packages/global-jsdom/test/setup.cjs b/packages/global-jsdom/test/setup.cjs deleted file mode 100644 index af15a5c..0000000 --- a/packages/global-jsdom/test/setup.cjs +++ /dev/null @@ -1,3 +0,0 @@ -const chai = require('chai') - -global.expect = chai.expect diff --git a/packages/global-jsdom/test/setup.mjs b/packages/global-jsdom/test/setup.mjs deleted file mode 100644 index c7e8633..0000000 --- a/packages/global-jsdom/test/setup.mjs +++ /dev/null @@ -1,3 +0,0 @@ -import chai from 'chai' - -global.expect = chai.expect diff --git a/yarn.lock b/yarn.lock index 094b5cc..8de016c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1796,10 +1796,10 @@ __metadata: languageName: node linkType: hard -"assertion-error@npm:^1.1.0": - version: 1.1.0 - resolution: "assertion-error@npm:1.1.0" - checksum: 10/fd9429d3a3d4fd61782eb3962ae76b6d08aa7383123fca0596020013b3ebd6647891a85b05ce821c47d1471ed1271f00b0545cf6a4326cf2fc91efcc3b0fbecf +"assertion-error@npm:^2.0.1": + version: 2.0.1 + resolution: "assertion-error@npm:2.0.1" + checksum: 10/a0789dd882211b87116e81e2648ccb7f60340b34f19877dd020b39ebb4714e475eb943e14ba3e22201c221ef6645b7bfe10297e76b6ac95b48a9898c1211ce66 languageName: node linkType: hard @@ -1981,18 +1981,16 @@ __metadata: languageName: node linkType: hard -"chai@npm:^4.3.10, chai@npm:^4.4.1": - version: 4.4.1 - resolution: "chai@npm:4.4.1" +"chai@npm:^5.0.3": + version: 5.0.3 + resolution: "chai@npm:5.0.3" dependencies: - assertion-error: "npm:^1.1.0" - check-error: "npm:^1.0.3" - deep-eql: "npm:^4.1.3" - get-func-name: "npm:^2.0.2" - loupe: "npm:^2.3.6" - pathval: "npm:^1.1.1" - type-detect: "npm:^4.0.8" - checksum: 10/c6d7aba913a67529c68dbec3673f94eb9c586c5474cc5142bd0b587c9c9ec9e5fbaa937e038ecaa6475aea31433752d5fabdd033b9248bde6ae53befcde774ae + assertion-error: "npm:^2.0.1" + check-error: "npm:^2.0.0" + deep-eql: "npm:^5.0.1" + loupe: "npm:^3.1.0" + pathval: "npm:^2.0.0" + checksum: 10/d9b2bb0e4591b4a73ea98bb7a6423c4e50dd35f43ce4404be26126796af970d844269bb0b07b21866620c542f07957003b34c5cf60095e5a84878af6b120cc2d languageName: node linkType: hard @@ -2017,12 +2015,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: "npm:^2.0.2" - checksum: 10/e2131025cf059b21080f4813e55b3c480419256914601750b0fee3bd9b2b8315b531e551ef12560419b8b6d92a3636511322752b1ce905703239e7cc451b6399 +"check-error@npm:^2.0.0": + version: 2.0.0 + resolution: "check-error@npm:2.0.0" + checksum: 10/120f252c2e1ad82ef82a616662805345c6c361347bfd6203f8a28c53a158811dd0ea21278f29c8136cc9df12fc7f077d1a07124569d98fb396b3072d08f2f092 languageName: node linkType: hard @@ -2249,12 +2245,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: "npm:^4.0.0" - checksum: 10/12ce93ae63de187e77b076d3d51bfc28b11f98910a22c18714cce112791195e86a94f97788180994614b14562a86c9763f67c69f785e4586f806b5df39bf9301 +"deep-eql@npm:^5.0.1": + version: 5.0.1 + resolution: "deep-eql@npm:5.0.1" + checksum: 10/f8846820213462cdca23700873810c8bc01263dcc6a1e0f8694964b64f48a6dcb1f323ef7bb8678b15553f4b82420eda19092d4ae2e2709c56af7ea77bd8e6ab languageName: node linkType: hard @@ -2893,7 +2887,7 @@ __metadata: languageName: node linkType: hard -"get-func-name@npm:^2.0.1, 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: 10/3f62f4c23647de9d46e6f76d2b3eafe58933a9b3830c60669e4180d6c601ce1b4aa310ba8366143f55e52b139f992087a9f0647274e8745621fa2af7e0acf13b @@ -3002,7 +2996,7 @@ __metadata: version: 0.0.0-use.local resolution: "global-jsdom-workspace@workspace:." dependencies: - chai: "npm:^4.3.10" + chai: "npm:^5.0.3" eslint: "npm:^8.56.0" eslint-config-airbnb-base: "npm:^15.0.0" eslint-plugin-import: "npm:^2.29.1" @@ -3018,7 +3012,7 @@ __metadata: version: 0.0.0-use.local resolution: "global-jsdom@workspace:packages/global-jsdom" dependencies: - chai: "npm:^4.4.1" + chai: "npm:^5.0.3" eslint: "npm:^8.56.0" eslint-config-airbnb-base: "npm:^15.0.0" eslint-plugin-import: "npm:^2.29.1" @@ -3707,12 +3701,12 @@ __metadata: languageName: node linkType: hard -"loupe@npm:^2.3.6": - version: 2.3.7 - resolution: "loupe@npm:2.3.7" +"loupe@npm:^3.1.0": + version: 3.1.0 + resolution: "loupe@npm:3.1.0" dependencies: get-func-name: "npm:^2.0.1" - checksum: 10/635c8f0914c2ce7ecfe4e239fbaf0ce1d2c00e4246fafcc4ed000bfdb1b8f89d05db1a220054175cca631ebf3894872a26fffba0124477fcb562f78762848fb1 + checksum: 10/48d1ad60a51f084430a7b9a3772434e0140e2d8a9ed422f13a632511452a29762695876ff97431c06eea4e248d42674a0f69b8e545d97f63fa6115adc7983b94 languageName: node linkType: hard @@ -4245,10 +4239,10 @@ __metadata: languageName: node linkType: hard -"pathval@npm:^1.1.1": - version: 1.1.1 - resolution: "pathval@npm:1.1.1" - checksum: 10/b50a4751068aa3a5428f5a0b480deecedc6f537666a3630a0c2ae2d5e7c0f4bf0ee77b48404441ec1220bef0c91625e6030b3d3cf5a32ab0d9764018d1d9dbb6 +"pathval@npm:^2.0.0": + version: 2.0.0 + resolution: "pathval@npm:2.0.0" + checksum: 10/b91575bf9cdf01757afd7b5e521eb8a0b874a49bc972d08e0047cfea0cd3c019f5614521d4bc83d2855e3fcc331db6817dfd533dd8f3d90b16bc76fad2450fc1 languageName: node linkType: hard @@ -4940,13 +4934,6 @@ __metadata: languageName: node linkType: hard -"type-detect@npm:^4.0.0, type-detect@npm:^4.0.8": - version: 4.0.8 - resolution: "type-detect@npm:4.0.8" - checksum: 10/5179e3b8ebc51fce1b13efb75fdea4595484433f9683bbc2dca6d99789dba4e602ab7922d2656f2ce8383987467f7770131d4a7f06a26287db0615d2f4c4ce7d - languageName: node - linkType: hard - "type-fest@npm:^0.20.2": version: 0.20.2 resolution: "type-fest@npm:0.20.2"