Skip to content

Commit

Permalink
test(chai): update chai to v5 (native esm) (#4907)
Browse files Browse the repository at this point in the history
* test(chai): update chai to v5 (native esm)

* remove 'chai' dependence from karma integration tests
  • Loading branch information
nicojs authored Jul 27, 2024
1 parent c2480f2 commit 8f8a1bf
Show file tree
Hide file tree
Showing 27 changed files with 131 additions and 267 deletions.
224 changes: 33 additions & 191 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@typescript-eslint/eslint-plugin": "7.17.0",
"@typescript-eslint/parser": "7.17.0",
"c8": "10.1.2",
"chai": "4.5.0",
"chai": "5.1.1",
"chai-as-promised": "8.0.0",
"chai-jest-snapshot": "2.0.0",
"concurrently": "8.2.2",
Expand All @@ -41,7 +41,7 @@
"prettier": "3.3.3",
"rimraf": "6.0.1",
"sinon": "18.0.0",
"sinon-chai": "3.7.0",
"sinon-chai": "4.0.0",
"source-map-support": "0.5.21",
"ts-node": "10.9.2",
"typescript": "5.5.4"
Expand Down Expand Up @@ -71,4 +71,4 @@
"engines": {
"node": ">=18.0.0"
}
}
}
6 changes: 3 additions & 3 deletions packages/api/test/setup.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import 'source-map-support/register.js';
import chai from 'chai';
import { use } from 'chai';
import chaiAsPromised from 'chai-as-promised';
import sinonChai from 'sinon-chai';
import sinon from 'sinon';

chai.use(sinonChai);
chai.use(chaiAsPromised);
use(sinonChai);
use(chaiAsPromised);

export const mochaHooks = {
afterEach(): void {
Expand Down
Loading

0 comments on commit 8f8a1bf

Please sign in to comment.