fix: e2e test cases

This commit is contained in:
Ahmed Bouhuolia
2025-01-11 18:03:59 +02:00
parent 7e82080cb7
commit ddaea20d16
32 changed files with 503 additions and 248 deletions

View File

@@ -4,14 +4,15 @@ import { AppModule } from '../src/modules/App/App.module';
let app: INestApplication;
let orgainzationId = 'fxdo7u419m5ryy4tb';
let authenticationToken = '';
beforeAll(async () => {
const moduleFixture: TestingModule = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = moduleFixture.createNestApplication();
app.useLogger(new Logger());
await app.init();
});
@@ -19,4 +20,6 @@ afterAll(async () => {
await app.close();
});
export { app };
jest.retryTimes(3, { logErrorsBeforeRetry: true });
export { app, orgainzationId, authenticationToken };