Hi guys.
I've found a bizarre bug (or maybe not :D )
I you are testing a component with JEST using @nest/testing helper and use HttpException from '@nestjs/core' JEST tests fail when the component is created with the error above.
So, steps to reproduce:
This will make JEST fail and now even go to the test suites.
hi @Martodox 馃槃
I had the same error while using Jest (https://github.com/kamilmysliwiec/nest/issues/35), solution was add json
to moduleFileExtensions in Jest config, maybe will work for you too.
Cheers 馃
I'll try on Monday.
@kamilmysliwiec Any ideas on official testing guide?
@jakub-gawlas Thanks. That was it. Works like a charm
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
@jakub-gawlas Thanks. That was it. Works like a charm