mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 23:00:34 +00:00
fix: e2e test cases
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user