Skip to content

Commit 1ac09d8

Browse files
committed
chore: fix up chai 5, some plugins still need upgrading
1 parent 1f1f0cc commit 1ac09d8

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@
222222
"release": "node src/index.js release --no-bundle"
223223
},
224224
"dependencies": {
225+
"@achingbrain/chai-as-promised": "^8.0.2",
226+
"@achingbrain/chai-string": "^2.0.1",
225227
"@anolilab/multi-semantic-release": "^1.0.3",
226228
"@electron/get": "^3.0.0",
227229
"@polka/send-type": "^0.5.2",
@@ -232,8 +234,6 @@
232234
"@semantic-release/npm": "^11.0.2",
233235
"@semantic-release/release-notes-generator": "^12.1.0",
234236
"@types/chai": "^4.2.16",
235-
"@types/chai-as-promised": "^7.1.3",
236-
"@types/chai-string": "^1.4.2",
237237
"@types/chai-subset": "^1.3.3",
238238
"@types/mocha": "^10.0.0",
239239
"@types/node": "^20.4.2",
@@ -242,10 +242,8 @@
242242
"bytes": "^3.1.0",
243243
"c8": "^9.0.0",
244244
"chai": "^5.1.0",
245-
"chai-as-promised": "^7.1.1",
246-
"chai-bites": "^0.1.2",
245+
"chai-bites": "^0.2.0",
247246
"chai-parentheses": "^0.0.2",
248-
"chai-string": "^1.5.0",
249247
"chai-subset": "^1.6.0",
250248
"conventional-changelog-conventionalcommits": "^7.0.2",
251249
"cors": "^2.8.5",

utils/chai.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
* ```
1919
*/
2020

21-
import chai from 'chai'
22-
import chaiAsPromised from 'chai-as-promised'
21+
import chaiAsPromised from '@achingbrain/chai-as-promised'
22+
import chaiString from '@achingbrain/chai-string'
23+
import * as chai from 'chai'
2324
import chaiBites from 'chai-bites'
2425
import chaiParentheses from 'chai-parentheses'
25-
import chaiString from 'chai-string'
2626
import chaiSubset from 'chai-subset'
2727

2828
// Do not reorder these statements - https://github.com/chaijs/chai/issues/1298

0 commit comments

Comments
 (0)