apps/nestjs-backend/src/features/base/base.service.spec.ts
import type { TestingModule } from '@nestjs/testing';
import { Test } from '@nestjs/testing';
import { GlobalModule } from '../../global/global.module';
import { BaseModule } from './base.module';
import { BaseService } from './base.service';
describe('BaseService', () => {
let service: BaseService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
imports: [GlobalModule, BaseModule],
}).compile();
service = module.get<BaseService>(BaseService);
});
it('should be defined', () => {
expect(service).toBeDefined();
});
});