add tests
Some checks failed
Contract Testing / contract-tests (push) Failing after 6m7s
Contract Testing / contract-snapshot (push) Failing after 4m46s

This commit is contained in:
2026-01-22 11:52:42 +01:00
parent 40bc15ff61
commit fb1221701d
112 changed files with 30625 additions and 1059 deletions

View File

@@ -0,0 +1,30 @@
import { Test, TestingModule } from '@nestjs/testing';
import { HelloController } from './HelloController';
import { HelloModule } from './HelloModule';
import { HelloService } from './HelloService';
describe('HelloModule', () => {
let module: TestingModule;
beforeEach(async () => {
module = await Test.createTestingModule({
imports: [HelloModule],
}).compile();
});
it('should compile the module', () => {
expect(module).toBeDefined();
});
it('should provide HelloController', () => {
const controller = module.get<HelloController>(HelloController);
expect(controller).toBeDefined();
expect(controller).toBeInstanceOf(HelloController);
});
it('should provide HelloService', () => {
const service = module.get<HelloService>(HelloService);
expect(service).toBeDefined();
expect(service).toBeInstanceOf(HelloService);
});
});