I wrote a unit test, but it failed because I injected the Nest-i18n service incorrectly or I didn't know. The error message says...
FAIL src/auth/auth.service.spec.ts
● Test suite failed to run
TypeError: (0 , index_1.I18nResolverOptions) is not a function
1 | import { Injectable } from '@nestjs/common';
> 2 | import { I18nContext, I18nService } from 'nestjs-i18n';
| ^
3 |
4 | @Injectable()
5 | export class CustomI18Service {
I searched many times but this error is not famous I use this to mock service but it gives me the same message
Describe the bug
I wrote a unit test, but it failed because I injected the Nest-i18n service incorrectly or I didn't know. The error message says...
I searched many times but this error is not famous I use this to mock service but it gives me the same message
service I write
and this is unit test example I run it
Reproduction
I encountered a unit test failure with the following error message
System Info
Used Package Manager
npm
Validations