Skip to content

Instantly share code, notes, and snippets.

View alsgu3rra's full-sized avatar
🌎
programador de sistemas

AlanGuerra alsgu3rra

🌎
programador de sistemas
View GitHub Profile
@alsgu3rra
alsgu3rra / rate-limiter.spec.ts
Created June 19, 2024 01:54
testar rate limiter no jest
import { INestApplication } from '@nestjs/common';
import { Test, TestingModule } from '@nestjs/testing';
import * as request from 'supertest';
import { AppModule } from './app.module';
describe('Rate Limit', () => {
let app: INestApplication;
beforeAll(async () => {
const moduleFixture: TestingModule = await Test.createTestingModule({