Files
gridpilot.gg/apps/api/src/domain/logging/LoggingModule.test.ts
Marc Mintel fb1221701d
Some checks failed
Contract Testing / contract-tests (push) Failing after 6m7s
Contract Testing / contract-snapshot (push) Failing after 4m46s
add tests
2026-01-22 11:52:42 +01:00

33 lines
900 B
TypeScript

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();
});
});