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,32 @@
import { Test, TestingModule } from '@nestjs/testing';
import { LoggingModule } from './LoggingModule';
describe('LoggingModule', () => {
let module: TestingModule;
beforeEach(async () => {
module = await Test.createTestingModule({
imports: [LoggingModule],
}).compile();
});
it('should compile the module', () => {
expect(module).toBeDefined();
});
it('should provide Logger provider', () => {
const logger = module.get('Logger');
expect(logger).toBeDefined();
});
it('should export Logger provider', () => {
const logger = module.get('Logger');
expect(logger).toBeDefined();
});
it('should be a global module', () => {
// Check if the module has the @Global() decorator by verifying it's registered globally
// In NestJS, global modules are automatically available to all other modules
expect(module).toBeDefined();
});
});