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