Skip to content

Commit

Permalink
Bump chai to 5.0.0
Browse files Browse the repository at this point in the history
 - fix requires -> import

Change-Id: Iadf9a5146282cbbc183b2d6b8e5db2da33bf2f13
  • Loading branch information
bpedersen2 committed Jan 19, 2024
1 parent a80133b commit ca67483
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 45 deletions.
70 changes: 31 additions & 39 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 @@ -81,7 +81,7 @@
"@nestjs/schematics": "^10.0.1",
"@nestjs/testing": "^9.0.0",
"@types/bcrypt": "^5.0.0",
"@types/chai": "^4.3.3",
"@types/chai": "^4.3.6",
"@types/express": "^4.17.13",
"@types/express-session": "^1.17.4",
"@types/jest": "^27.0.2",
Expand All @@ -97,8 +97,8 @@
"@types/uuid": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"chai": "^4.3.6",
"chai-http": "^4.3.0",
"chai": "^5.0.0",
"chai-http": "^4.3.6",
"concurrently": "^8.0.1",
"eslint": "^8.46.0",
"eslint-config-loopback": "^13.1.0",
Expand Down
7 changes: 4 additions & 3 deletions test/config/pretest.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/* eslint-disable @typescript-eslint/no-var-requires */
//NOTE: Here we load and initialize some global variables that are used throughout the tests
const chai = require("chai");
const chaiHttp = require("chai-http");
chai.should();

const chai = import("chai");
const chaiHttp = import("chai-http");

chai.use(chaiHttp);

global.appUrl = "http://localhost:3000";
Expand Down

0 comments on commit ca67483

Please sign in to comment.