Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency chai to v5 #1957

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -45,15 +45,15 @@
"winston": "3.13.0"
},
"devDependencies": {
"@types/chai": "4.3.16",
"@types/chai": "5.0.1",
"@types/config": "3.3.4",
"@types/express": "4.17.21",
"@types/jest": "29.5.12",
"@types/mocha": "10.0.6",
"@types/node": "20.11.24",
"@types/sinon": "17.0.3",
"@typescript-eslint/parser": "^7.1.1",
"chai": "4.4.1",
"chai": "5.2.0",
"chai-http": "4.4.0",
"cross-env": "7.0.3",
"eslint": "^8.57.0",
89 changes: 44 additions & 45 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -1720,11 +1720,18 @@
resolved "https://registry.yarnpkg.com/@types/caseless/-/caseless-0.12.5.tgz#db9468cb1b1b5a925b8f34822f1669df0c5472f5"
integrity sha512-hWtVTC2q7hc7xZ/RLbxapMvDMgUnDvKvMOpKal4DrMyfGBUfB1oKaZlIRr6mJL+If3bAP6sV/QneGzF6tJjZDg==

"@types/chai@4", "@types/[email protected]":
"@types/chai@4":
version "4.3.16"
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.16.tgz#b1572967f0b8b60bf3f87fe1d854a5604ea70c82"
integrity sha512-PatH4iOdyh3MyWtmHVFXLWCCIhUbopaltqddG9BzB+gMIzee2MJrvd+jouii9Z3wzQJruGWAm7WOMjgfG8hQlQ==

"@types/[email protected]":
version "5.0.1"
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-5.0.1.tgz#2c3705555cf11f5f59c836a84c44afcfe4e5689d"
integrity sha512-5T8ajsg3M/FOncpLYW7sdOcD6yf4+722sze/tc4KQV0P8Z2rAr3SAuHCIkYmYpt8VbcQlnz8SxlOlPQYefe4cA==
dependencies:
"@types/deep-eql" "*"

"@types/concat-stream@^1.6.0":
version "1.6.1"
resolved "https://registry.yarnpkg.com/@types/concat-stream/-/concat-stream-1.6.1.tgz#24bcfc101ecf68e886aaedce60dfd74b632a1b74"
@@ -1749,6 +1756,11 @@
resolved "https://registry.yarnpkg.com/@types/cookiejar/-/cookiejar-2.1.5.tgz#14a3e83fa641beb169a2dd8422d91c3c345a9a78"
integrity sha512-he+DHOWReW0nghN24E1WUqM0efK4kI9oTqDm6XmK8ZPe2djZ90BSNdGnIyCLzCPw7/pogPlGbzI2wHGGmi4O/Q==

"@types/deep-eql@*":
version "4.0.2"
resolved "https://registry.yarnpkg.com/@types/deep-eql/-/deep-eql-4.0.2.tgz#334311971d3a07121e7eb91b684a605e7eea9cbd"
integrity sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==

"@types/duplexify@^3.6.0":
version "3.6.4"
resolved "https://registry.yarnpkg.com/@types/duplexify/-/duplexify-3.6.4.tgz#aa7e916c33fcc05be8769546fd0441d9b368613e"
@@ -2412,10 +2424,10 @@ asap@^2.0.0, asap@~2.0.6:
resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46"
integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==

assertion-error@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b"
integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==
assertion-error@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-2.0.1.tgz#f641a196b335690b1070bf00b6e7593fec190bf7"
integrity sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==

ast-types@^0.13.4:
version "0.13.4"
@@ -2753,18 +2765,16 @@ [email protected]:
qs "^6.11.2"
superagent "^8.0.9"

[email protected]:
version "4.4.1"
resolved "https://registry.yarnpkg.com/chai/-/chai-4.4.1.tgz#3603fa6eba35425b0f2ac91a009fe924106e50d1"
integrity sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==
dependencies:
assertion-error "^1.1.0"
check-error "^1.0.3"
deep-eql "^4.1.3"
get-func-name "^2.0.2"
loupe "^2.3.6"
pathval "^1.1.1"
type-detect "^4.0.8"
[email protected]:
version "5.2.0"
resolved "https://registry.yarnpkg.com/chai/-/chai-5.2.0.tgz#1358ee106763624114addf84ab02697e411c9c05"
integrity sha512-mCuXncKXk5iCLhfhwTc0izo0gtEmpz5CtG2y8GiOINBlMVS6v8TMRc5TaLWKS6692m9+dVVfzgeVxR5UxWHTYw==
dependencies:
assertion-error "^2.0.1"
check-error "^2.1.1"
deep-eql "^5.0.1"
loupe "^3.1.0"
pathval "^2.0.0"

chalk@^2.4.2:
version "2.4.2"
@@ -2803,12 +2813,10 @@ check-disk-space@^3.4.0:
resolved "https://registry.yarnpkg.com/check-disk-space/-/check-disk-space-3.4.0.tgz#eb8e69eee7a378fd12e35281b8123a8b4c4a8ff7"
integrity sha512-drVkSqfwA+TvuEhFipiR1OC9boEGZL5RrWvVsOthdcvQNXyCCuKkEiTOTXZ7qxSf/GLwq4GvzfrQD/Wz325hgw==

check-error@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.3.tgz#a6502e4312a7ee969f646e83bb3ddd56281bd694"
integrity sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==
dependencies:
get-func-name "^2.0.2"
check-error@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/check-error/-/check-error-2.1.1.tgz#87eb876ae71ee388fa0471fe423f494be1d96ccc"
integrity sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==

[email protected]:
version "3.5.3"
@@ -3368,12 +3376,10 @@ decompress-response@^6.0.0:
dependencies:
mimic-response "^3.1.0"

deep-eql@^4.1.3:
version "4.1.4"
resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-4.1.4.tgz#d0d3912865911bb8fac5afb4e3acfa6a28dc72b7"
integrity sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==
dependencies:
type-detect "^4.0.0"
deep-eql@^5.0.1:
version "5.0.2"
resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-5.0.2.tgz#4b756d8d770a9257300825d52a2c2cff99c3a341"
integrity sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==

deep-equal-in-any-order@^2.0.6:
version "2.0.6"
@@ -4656,11 +4662,6 @@ get-caller-file@^2.0.1, get-caller-file@^2.0.5:
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e"
integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==

get-func-name@^2.0.1, get-func-name@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.2.tgz#0d7cf20cd13fda808669ffa88f4ffc7a3943fc41"
integrity sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==

get-intrinsic@^1.1.3, get-intrinsic@^1.2.1, get-intrinsic@^1.2.3, get-intrinsic@^1.2.4:
version "1.2.4"
resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd"
@@ -6192,12 +6193,10 @@ long@^5.0.0, long@^5.2.3:
resolved "https://registry.yarnpkg.com/long/-/long-5.2.3.tgz#a3ba97f3877cf1d778eccbcb048525ebb77499e1"
integrity sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==

loupe@^2.3.6:
version "2.3.7"
resolved "https://registry.yarnpkg.com/loupe/-/loupe-2.3.7.tgz#6e69b7d4db7d3ab436328013d37d1c8c3540c697"
integrity sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==
dependencies:
get-func-name "^2.0.1"
loupe@^3.1.0:
version "3.1.3"
resolved "https://registry.yarnpkg.com/loupe/-/loupe-3.1.3.tgz#042a8f7986d77f3d0f98ef7990a2b2fef18b0fd2"
integrity sha512-kkIp7XSkP78ZxJEsSxW3712C6teJVoeHHwgo9zJ380de7IYyJ2ISlxojcH2pC5OFLewESmnRi/+XCDIEEVyoug==

[email protected], lru-cache@^6.0.0:
version "6.0.0"
@@ -7187,10 +7186,10 @@ path-type@^4.0.0:
resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==

pathval@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.1.tgz#8534e77a77ce7ac5a2512ea21e0fdb8fcf6c3d8d"
integrity sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==
pathval@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/pathval/-/pathval-2.0.0.tgz#7e2550b422601d4f6b8e26f1301bc8f15a741a25"
integrity sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==

[email protected]:
version "0.0.1"
@@ -8645,7 +8644,7 @@ type-check@~0.3.2:
dependencies:
prelude-ls "~1.1.2"

[email protected], type-detect@^4.0.0, type-detect@^4.0.8:
[email protected], type-detect@^4.0.8:
version "4.0.8"
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==

Unchanged files with check annotations Beta

sinon.stub(answerQuery, "createAnswer").throws(new Error());
chai
.request(app)

Check failure on line 53 in test/integration/answers.test.ts

GitHub Actions / build (22.10.0)

Property 'request' does not exist on type 'typeof import("/home/runner/work/website-backend/website-backend/node_modules/@types/chai/index")'.
.post("/answers")
.send(answerDataArray[1])
.end((error, response) => {
sinon.stub(answerQuery, "createAnswer").returns(answerDataArray[2]);
chai
.request(app)

Check failure on line 72 in test/integration/answers.test.ts

GitHub Actions / build (22.10.0)

Property 'request' does not exist on type 'typeof import("/home/runner/work/website-backend/website-backend/node_modules/@types/chai/index")'.
.post("/answers")
.send(answerDataArray[1])
.end((error, response) => {
};
chai
.request(app)

Check failure on line 108 in test/integration/answers.test.ts

GitHub Actions / build (22.10.0)

Property 'request' does not exist on type 'typeof import("/home/runner/work/website-backend/website-backend/node_modules/@types/chai/index")'.
.patch(`/answers/${answerDataArray[2].id}`)
.set("cookie", `${cookieName}=${superUserAuthToken}`)
.send(payload)
};
chai
.request(app)

Check failure on line 132 in test/integration/answers.test.ts

GitHub Actions / build (22.10.0)

Property 'request' does not exist on type 'typeof import("/home/runner/work/website-backend/website-backend/node_modules/@types/chai/index")'.
.patch(`/answers/${answerDataArray[2].id}`)
.set("cookie", `${cookieName}=${superUserAuthToken}`)
.send(payload)
};
chai
.request(app)

Check failure on line 154 in test/integration/answers.test.ts

GitHub Actions / build (22.10.0)

Property 'request' does not exist on type 'typeof import("/home/runner/work/website-backend/website-backend/node_modules/@types/chai/index")'.
.patch(`/answers/${answerDataArray[2].id}`)
.set("cookie", `${cookieName}=${superUserAuthToken}`)
.send(payload)
};
chai
.request(app)

Check failure on line 176 in test/integration/answers.test.ts

GitHub Actions / build (22.10.0)

Property 'request' does not exist on type 'typeof import("/home/runner/work/website-backend/website-backend/node_modules/@types/chai/index")'.
.patch(`/answers/${answerDataArray[2].id}`)
.set("cookie", `${cookieName}=${memberAuthToken}`)
.send(payload)
};
chai
.request(app)

Check failure on line 198 in test/integration/answers.test.ts

GitHub Actions / build (22.10.0)

Property 'request' does not exist on type 'typeof import("/home/runner/work/website-backend/website-backend/node_modules/@types/chai/index")'.
.patch(`/answers/${answerDataArray[2].id}`)
.set("cookie", `${cookieName}=${memberAuthToken}`)
.send(payload)
};
chai
.request(app)

Check failure on line 220 in test/integration/answers.test.ts

GitHub Actions / build (22.10.0)

Property 'request' does not exist on type 'typeof import("/home/runner/work/website-backend/website-backend/node_modules/@types/chai/index")'.
.patch(`/answers/${answerDataArray[2].id}`)
.set("cookie", `${cookieName}=${defaultUserAuthToken}`)
.send(payload)
describe("GET /applications", function () {
it("should return all the application if the user is super user and there is no user id, and next url if the size provided is equal to the applications returned in query", function (done) {
chai
.request(app)

Check failure on line 72 in test/integration/application.test.ts

GitHub Actions / build (22.10.0)

Property 'request' does not exist on type 'typeof import("/home/runner/work/website-backend/website-backend/node_modules/@types/chai/index")'.
.get("/applications?size=5")
.set("cookie", `${cookieName}=${superUserJwt}`)
.end((err, res) => {
it("should return all the application if the user is super user and there is no user id, and next url should be null if the size provided is not equal to the applications returned in query", function (done) {
chai
.request(app)

Check failure on line 94 in test/integration/application.test.ts

GitHub Actions / build (22.10.0)

Property 'request' does not exist on type 'typeof import("/home/runner/work/website-backend/website-backend/node_modules/@types/chai/index")'.
.get("/applications?size=25")
.set("cookie", `${cookieName}=${superUserJwt}`)
.end((err, res) => {