Skip to content
Snippets Groups Projects
application.spec.ts 552 B
Newer Older
import type { INestApplication } from '@nestjs/common';

import { Test } from '@nestjs/testing';

import { Application } from '../application.js';

describe('Application', () => {
  let app: INestApplication;

  beforeAll(async () => {
    const moduleFixture = await Test.createTestingModule({
      imports: [Application],
    }).compile();

    app = moduleFixture.createNestApplication();
    await app.init();
  });

  afterAll(async () => {
    await app.close();
  });

  it('should be defined', () => {
    expect(app).toBeDefined();
  });
});