NoMongo: migrate the file test/routes/graphql/Mutation/deleteChatMessage.test.ts to integration test #3273
Labels
bug
Something isn't working
security
Security fix
test
Testing application
unapproved
Unapproved for Pull Request
Describe the bug
The
deleteChatMessage
GraphQL mutation (intest/routes/graphql/Mutation/deleteChatMessage.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
deleteChatMessage
, should be thoroughly integration tested using actual API calls. Mutation files should reside intest/routes/Graphql/Mutation/*
.Actual Behavior
deleteChatMessage
uses mocked tests, bypassing the real API and services.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: