import { Test, TestingModule } from '@nestjs/testing'; import { CaptchaService } from './captcha.service'; describe('CaptchaService', () => { let service: CaptchaService; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ providers: [CaptchaService], }).compile(); service = module.get(CaptchaService); }); it('should be defined', () => { expect(service).toBeDefined(); }); });