We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 236a70c commit 5f3e49eCopy full SHA for 5f3e49e
1 file changed
__tests__/comments.ts
@@ -1090,6 +1090,12 @@ describe('mutation commentOnPost', () => {
1090
describe('rate limiting', () => {
1091
const redisKey = `${rateLimiterName}:1:createComment`;
1092
const variables = { postId: 'p1', content: 'comment' };
1093
+
1094
+ beforeEach(async () => {
1095
+ // Clear rate limit key before each test to ensure isolation
1096
+ await deleteKeysByPattern(redisKey);
1097
+ });
1098
1099
it('store rate limiting state in redis', async () => {
1100
loggedUser = '1';
1101
0 commit comments