We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
await app.init
Described on stackoverflow.
https://stackoverflow.com/questions/62699348/nestjs-lifecycle-events-some-time-is-not-executed-as-expected-in-e2e-tests
In the e2e testing codes, app.init did not ensure the execution OnModuleInit.
app.init
OnModuleInit
Sometimes the sample data is filled, sometimes not.
It caused the following tests failed sometime.
it('/posts (GET)', async () => { const res = await request(app.getHttpServer()).get('/posts').send(); expect(res.status).toBe(200); expect(res.body.length).toEqual(3); });
The text was updated successfully, but these errors were encountered:
From the CI build results, this test still failed sometimes even I changed to async/await instead of Rxjs Observable.
Observable
Sorry, something went wrong.
Marked as stale
No branches or pull requests
Described on stackoverflow.
https://stackoverflow.com/questions/62699348/nestjs-lifecycle-events-some-time-is-not-executed-as-expected-in-e2e-tests
In the e2e testing codes,
app.init
did not ensure the executionOnModuleInit
.Sometimes the sample data is filled, sometimes not.
It caused the following tests failed sometime.
The text was updated successfully, but these errors were encountered: