Angular (TypeScript) + Jest Syntax Highlighting

I have set up Jest Run Configuration for Angular project and it works.
However syntax highlighting in .spec files doesn't recognize Jest specific matchers - it references Jasmine `expect` function.
How to configure WebStorm to reference Jest instead?

0

please download and install Jest Typescript stubs: in File | Settings | Languages & Frameworks | JavaScript | Libraries, press Download..., choose 'jest' from the list of available stubs, press Download and Install

2

Thank you, that worked!

0

请先登录再写评论。