Put in order · NestJS course · Module 7: Testing

App initialization in E2E

Arrange the steps for preparing the application for an E2E test:

Items to put in order

  • .compile()
  • await app.init()
  • Test.createTestingModule({ imports: [AppModule] })
  • moduleFixture.createNestApplication()

You can check the correct answer by solving this task in the CodeWorlds game.