NoMongo: migrate file test/routes/graphql/Mutation/updateChatMessage to integration test #3274
Labels
bug
Something isn't working
security
Security fix
test
Testing application
unapproved
Unapproved for Pull Request
Describe the bug
The
updateChatMessage
GraphQL mutation (intest/routes/graphql/Mutation/updateChatMessage.test.ts
) uses mocked tests, contradicting the project's requirement for integration testing via real API calls for all mutations in that directory.Expected Behavior
All GraphQL mutations, including
updateChatMessage
, should be thoroughly integration tested using actual API calls. Mutation files should reside intest/routes/Graphql/Mutation/*
.Actual Behavior
updateChatMessage
uses mocked tests, bypassing the real API and services. The file is in the wrong directory.Impact
Mocked tests provide a false sense of security, risking undetected bugs and regressions. Inconsistent testing hinders maintainability.
Potential internship candidates
Please read this if you are planning to apply for a Palisadoes Foundation internship
The text was updated successfully, but these errors were encountered: