Skip to content

Commit

Permalink
Improved Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-kiefer committed Nov 22, 2023
1 parent 0fdfdf1 commit 6861f9d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/modules/user/user.module.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Test, TestingModule } from '@nestjs/testing';
import { UserModule } from './user.module.js';
import { ConfigTestModule, DatabaseTestModule, MapperTestModule } from '../../../test/utils/index.js';

describe('The UserModule', () => {
let module: TestingModule;

beforeAll(async () => {
module = await Test.createTestingModule({
imports: [UserModule, DatabaseTestModule.forRoot(), ConfigTestModule, MapperTestModule],
}).compile();
});

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

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

0 comments on commit 6861f9d

Please sign in to comment.