mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
fix(backend): update jest packages (#8806)
* update jest & related packages * fix deprecation errors
This commit is contained in:
parent
f7f3938855
commit
e0017bc4dd
@ -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",
|
||||
|
||||
@ -115,7 +115,7 @@ describe('Message', () => {
|
||||
CreateMessage: null,
|
||||
},
|
||||
})
|
||||
expect(pubsubSpy).not.toBeCalled()
|
||||
expect(pubsubSpy).not.toHaveBeenCalled()
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@ -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)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -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)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
1622
backend/yarn.lock
1622
backend/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user