NoMongo: migrate the file 'test/graphql/types/Mutation/createChatMembership.test.ts' to integration test #3272
Labels
bug
Something isn't working
security
Security fix
test
Testing application
unapproved
Unapproved for Pull Request
Describe the bug
The
createChatMembership
GraphQL mutation (intest/graphql/types/Mutation/createChatMembership.test.ts
) uses mocked tests, contradicting the project's requirement for integration testing via real API calls for all mutations in that directory. These mutation files are also incorrectly located; they belong intest/routes/Graphql/Mutation/*
.Expected Behavior
All GraphQL mutations, including
createChatMembership
, should be thoroughly integration tested using actual API calls. Mutation files should reside intest/routes/Graphql/Mutation/*
.Actual Behavior
createChatMembership
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: