Skip to content

Commit

Permalink
Fix upgrade Chai
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Dec 6, 2024
1 parent c4085bf commit b9010d5
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
*/

import { before, describe, it, expect as jestExpect } from 'esmocha';
import chai, { expect } from 'chai';
import * as chai from 'chai';
const { expect } = chai;
import sinonChai from 'sinon-chai';

chai.use(sinonChai);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
*/

import { after, before, describe, it, expect as jestExpect } from 'esmocha';
import chai, { expect } from 'chai';
import * as chai from 'chai';
const { expect } = chai;
import sinon from 'sinon';
import sinonChai from 'sinon-chai';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
*/

import { after, before, describe, it, expect as jestExpect } from 'esmocha';
import chai, { expect } from 'chai';
import * as chai from 'chai';
const { expect } = chai;
import sinon from 'sinon';
import sinonChai from 'sinon-chai';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
*/

import { after, before, describe, it, expect as jestExpect } from 'esmocha';
import chai, { expect } from 'chai';
import * as chai from 'chai';
const { expect } = chai;
import sinon from 'sinon';
import sinonChai from 'sinon-chai';

Expand Down
115 changes: 52 additions & 63 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@
"@actions/core": "1.11.1",
"@eslint/core": "0.9.1",
"@node-loaders/esbuild": "2.0.0",
"@types/chai": "4.3.16",
"@types/chai": "5.0.1",
"@types/estree": "1.0.6",
"@types/node": "20.11.25",
"@types/sinon-chai": "3.2.12",
"chai": "4.5.0",
"@types/sinon-chai": "4.0.0",
"chai": "5.1.2",
"cpy-cli": "5.0.0",
"ejs-lint": "2.0.1",
"eslint-config-prettier": "9.1.0",
Expand All @@ -195,7 +195,7 @@
"prettier2": "npm:prettier@2.8.8",
"rimraf": "5.0.7",
"sinon": "19.0.2",
"sinon-chai": "3.7.0",
"sinon-chai": "4.0.0",
"yeoman-test": "10.0.1"
},
"peerDependencies": {
Expand Down

0 comments on commit b9010d5

Please sign in to comment.