fix(backend): update jest packages (#8806)

* update jest & related packages

* fix deprecation errors
This commit is contained in:
Ulf Gebhardt 2025-08-05 04:57:02 +01:00 committed by GitHub
parent f7f3938855
commit e0017bc4dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 926 additions and 720 deletions

View File

@ -95,7 +95,7 @@
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
"@faker-js/faker": "9.9.0",
"@types/email-templates": "^10.0.4",
"@types/jest": "^29.5.14",
"@types/jest": "^30.0.0",
"@types/jsonwebtoken": "~8.5.1",
"@types/lodash": "^4.17.20",
"@types/node": "^24.1.0",
@ -117,12 +117,12 @@
"eslint-plugin-prettier": "^5.5.3",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-security": "^3.0.1",
"jest": "^29.7.0",
"jest": "^30.0.5",
"nodemon": "~3.1.10",
"prettier": "^3.6.2",
"require-json5": "^1.3.0",
"rosie": "^2.1.1",
"ts-jest": "^29.4.0",
"ts-jest": "^29.4.1",
"ts-node": "^10.9.2",
"tsc-alias": "^1.8.16",
"tsconfig-paths": "^4.2.0",

View File

@ -115,7 +115,7 @@ describe('Message', () => {
CreateMessage: null,
},
})
expect(pubsubSpy).not.toBeCalled()
expect(pubsubSpy).not.toHaveBeenCalled()
})
})

View File

@ -105,7 +105,7 @@ describe('online status and sending emails', () => {
})
it('sends NO email to the other user', () => {
expect(sendNotificationMailMock).not.toBeCalled()
expect(sendNotificationMailMock).not.toHaveBeenCalled()
})
})
})
@ -131,7 +131,7 @@ describe('online status and sending emails', () => {
})
it('sends email to the other user', () => {
expect(sendNotificationMailMock).toBeCalledTimes(1)
expect(sendNotificationMailMock).toHaveBeenCalledTimes(1)
})
})
})

View File

@ -66,8 +66,8 @@ describe('apollo logger', () => {
},
})
expect(loggerSpy).toBeCalledTimes(2)
expect(loggerSpy).toBeCalledWith(
expect(loggerSpy).toHaveBeenCalledTimes(2)
expect(loggerSpy).toHaveBeenCalledWith(
'Apollo Request',
expect.any(String),
'"mutation ($email: String!, $password: String!) {\\n login(email: $email, password: $password)\\n}\\n"',
@ -77,9 +77,13 @@ describe('apollo logger', () => {
}),
)
expect(loggerSpy).toBeCalledWith('Apollo Response', expect.any(String), '{"login":"token"}')
expect(loggerSpy).toHaveBeenCalledWith(
'Apollo Response',
expect.any(String),
'{"login":"token"}',
)
expect(consoleSpy).toBeCalledTimes(2)
expect(consoleSpy).toHaveBeenCalledTimes(2)
})
})
})

File diff suppressed because it is too large Load Diff