#Use Jest with Angular

5 messages · Page 1 of 1 (latest)

half sierra
#

I'm trying to use jest.fn with angular but I'm not sure how to set it up.

#

error TS2304: Cannot find name 'jest'

winged geyser
#

i'm no expert in this and haven't even used unit testing in the past 😅
but pretty sure jest is included by default unless opted out

half sierra
#

Oh think that is the case

thin onyx
#

Angular should ship Karma as test runner by default.
Maybe if you're using something like Nx you could get Jest, but I'm not sure.