How to import 'describe', 'expect' and 'it' into a typescript tests for IDE to not to highlight them

后端 未结 1 1816
挽巷
挽巷 2021-02-15 16:20

Wrote some tests and everything successfully runs, but my IDE (webstorm) highlights describe, expect and it and says \"cannot find name\".

1条回答
  •  清酒与你
    2021-02-15 17:13

    I was having the same problem and did:

     npm install @types/jasmine --save-dev
    

    and that solved it - no need to import anything from jasmine.

    0 讨论(0)
提交回复
热议问题