You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/docs/developer-resources/testing.md
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -60,34 +60,43 @@ The `tests/server.ts` file exports the Talawa API server instance that can be im
60
60
There aren't any other strict structure requirements for the this directory.
61
61
62
62
# Mock GraphQL Context Factory Function
63
+
63
64
In Directory `test/MockContext/*`
64
65
65
66
## **Purpose**
67
+
66
68
The `createMockGraphQLContext` function provides a **fully mocked GraphQL context** for unit and integration testing of GraphQL resolvers. It ensures that resolvers can be tested **without needing a real database, MinIO storage, or authentication service** and works as centralised mocking mechanism.
0 commit comments