-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
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
ValidationPipe not triggering in unit tests #841
Comments
Hey @arnarleifs. I'm not sure what a |
@Xunnamius The The issue might be related to their package. The example seen above should be suitable for a minimal reproducible example. I will make sure the issue is not on their side. |
Interesting library, thanks for sharing! Unfortunately, what you posted above isn't sufficient to reliably recreate the issue. Like with the Apollo issue, I can investigate and resolve on my side but only if I get something I can copy and paste into a file and run If you can provide a tiny repo that is minimally configured to immediately demonstrate your issue (including a |
Closing this for now, but I'll reopen if there are any developments. |
The problem
When running a unit test using Jest the validation pipeline is not triggered. The expected behaviour would be by providing incorrect values to a route which accepts a body that the validation pipe would be triggered and an error returned to the client.
The unit test can be found here:
Additional context
Package versions:
"class-transformer": "0.5.1",
"class-validator": "0.14.0",
"next-api-decorators": "2.0.2",
The text was updated successfully, but these errors were encountered: