Skip to content
Snippets Groups Projects
  • Konstantin Tsabolov's avatar
    7f3815fd
    chore: update dependencies, fix style · 7f3815fd
    Konstantin Tsabolov authored
    * Upgraded the dependencies to the latest versions
    * Switched output to ESM format
    * Switched NestJS and Jest to SWC to improve speed of building and testing
    * Refactored TSConfig to remove tsconfig-paths
    * Updated imports in all files to reflect the change in TSConfig
    * Changed the linting rules (removed AirBnB config)
    * Fixed Prettier installation (added ignore file)
    * Fixed typing errors (mainly usage of any's)
    * Fixed the non-working E2E test
    
    P.S. None of the mentioned makes sense alone, therefore a huge commit :man_shrugging:
    chore: update dependencies, fix style
    Konstantin Tsabolov authored
    * Upgraded the dependencies to the latest versions
    * Switched output to ESM format
    * Switched NestJS and Jest to SWC to improve speed of building and testing
    * Refactored TSConfig to remove tsconfig-paths
    * Updated imports in all files to reflect the change in TSConfig
    * Changed the linting rules (removed AirBnB config)
    * Fixed Prettier installation (added ignore file)
    * Fixed typing errors (mainly usage of any's)
    * Fixed the non-working E2E test
    
    P.S. None of the mentioned makes sense alone, therefore a huge commit :man_shrugging:
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
app.module.spec.ts 556 B
import { INestApplication } from '@nestjs/common';
import { Test, TestingModule } from '@nestjs/testing';
import AppModule from './app.module.js';

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

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

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

  it('should work', () => {
    expect(true).toBe(true);
  });

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