@dryv/nestjs-appv0.3.1
NestJS application shell with bootstrap, package and tooling around the generated AppModule.
dryv pack add @dryv/nestjs-appimport { Test } from "@nestjs/testing";
import type { INestApplication } from "@nestjs/common";
import { AppModule } from "../src/app.module.ts";
describe("AppModule", () => {
let app: INestApplication;
beforeAll(async () => {
const moduleRef = await Test.createTestingModule({ imports: [AppModule] }).compile();
app = moduleRef.createNestApplication();
await app.init();
});
afterAll(async () => {
await app.close();
});
it("boots the generated Nest application", () => {
expect(app.getHttpServer()).toBeDefined();
});
});