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