Unable to authenticate / validate graphQL

I ve been on this error for a day now
it is showing this error
❌ Test Failed. Response: {
"data": null,
"errors": [
{
"message": "Graphql validation error",
"extensions": {
"code": "invalid_arguments",
"correlationId": "78a92099-d284-4abb-812e-85d59451cf25",
"httpStatus": 400
}
}
]
}

❯ test/graphql/types/Tag/assignees.test.ts (1 test | 1 failed) 97ms
× GraphQL: Tag Assignees Resolver Integration > Coverage Scenarios > should throw 'arguments_associated_resources_not_found' for valid but non-existent cursor 59ms
→ expected 'invalid_arguments' to be 'arguments_associated_resources_not_fo…' // Object.is equality

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

FAIL test/graphql/types/Tag/assignees.test.ts > GraphQL: Tag Assignees Resolver Integration > Coverage Scenarios > should throw 'arguments_associated_resources_not_found' for valid but non-existent cursor
AssertionError: expected 'invalid_arguments' to be 'arguments_associated_resources_not_fo…' // Object.is equality

Expected: "arguments_associated_resources_not_found"
Received: "invalid_arguments"

❯ test/graphql/types/Tag/assignees.test.ts:113:45
111|
112| expect(res.errors).toBeDefined();
113| expect(res.errors[0].extensions.code).toBe("arguments_associated_resources_not_found");
| ^
114| });
115| });

how to solve this , and successfully test my code?
 
Back
Top