Nest. js applications are built from classes, decorators and dependency injection. Tests usually aren't: they are anonymous functions that fetch what they need with app.

Source: [Dev.to](https://dev.to/demostenes1509/write-your-nestjs-12-tests-as-decorated-classes-with-mocha-c5i)

Sponsored