DEV Community

Discussion on: Escrevendo testes com Jest + supertest

Collapse
 
vitorcalvi profile image
Vitor Calvi

Vitor, há um erro com Jest:

FAIL src/tests/user.test.ts
● Test suite failed to run

src/apps/Users/UserService.ts:23:11 - error TS2571: Object is of type 'unknown'.

23       if (e.code === 11000)
Enter fullscreen mode Exit fullscreen mode