From 6861f9d2d13861cb32882c615e8d90694fe47523 Mon Sep 17 00:00:00 2001 From: Kristoff Kiefer Date: Wed, 22 Nov 2023 13:43:26 +0100 Subject: [PATCH] Improved Coverage --- src/modules/user/user.module.spec.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/modules/user/user.module.spec.ts diff --git a/src/modules/user/user.module.spec.ts b/src/modules/user/user.module.spec.ts new file mode 100644 index 000000000..672e2930a --- /dev/null +++ b/src/modules/user/user.module.spec.ts @@ -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(); + }); +});