We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
beforeAll(async () => { module = await Test.createTestingModule({ imports: [AppModule], }).compile(); myService = module.get(MyService); }); test(async () => { await myService.createOne(req, {...}); }) [..] @Injectable() export class MyService extends TypeOrmCrudService<MyRepo> { constructor( @InjectRepository(MyRepo) private myRepository: Repository<MyRepo> ) { super(myRepository); } }
How can I mock req?
req
Error messages are like below:
Cannot read property 'routes' // etc.
Question - How to mock req parameter to not break anything else?
Package version: - "@nestjs/core": "^8.0.0" - "@nestjsx/crud": "^5.0.0-alpha.3" - "@nestjsx/crud-typeorm": "^5.0.0-alpha.3" For Tooling issues: - Node version: 14.19.3 - Platform: Linux (ubuntu 20.04) - Database: Postgres 14
The text was updated successfully, but these errors were encountered:
No branches or pull requests
My code and what's wrong:
How can I mock
req
?Error messages are like below:
Question - How to mock
req
parameter to not break anything else?Environment
The text was updated successfully, but these errors were encountered: