Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(guidelines): make the e2e example compile and boot
Yudhi Armyndharisd3baa23e4011
diff --git a/docs/08-development-guidelines.md b/docs/08-development-guidelines.mdindex d750c0a7c..37108073b 100644--- a/docs/08-development-guidelines.md+++ b/docs/08-development-guidelines.md@@ -426,10 +426,14 @@ describe('resolveReconnectConfig', () => {```typescript// test/app.e2e-spec.ts+// archiver is ESM-only and AppModule pulls it in; stub it so ts-jest (CommonJS) can load the graph.+jest.mock('archiver', () => ({ TarArchive: jest.fn() }));+import { Test, TestingModule } from '@nestjs/testing';import { INestApplication } from '@nestjs/common';-import * as request from 'supertest';+import request from 'supertest';import { AppModule } from '../src/app.module';+import { applyGlobalValidation } from '../src/config/app-validation';describe('App (e2e)', () => {let app: INestApplication;@@ -440,6 +444,7 @@ describe('App (e2e)', () => {}).compile();app = moduleFixture.createNestApplication();+ applyGlobalValidation(app);await app.init();});