TypeError: environment.setup is not a function in React Testing

后端 未结 7 1798
伪装坚强ぢ
伪装坚强ぢ 2021-02-12 08:44

I was trying to implement the example shown in Jest website: Getting started with Jest.

While running npm test on I was getting the following error:

<
7条回答
  •  北海茫月
    2021-02-12 08:56

    Just remove jest from your dev dependencies. To do so, run the following command:

    npm remove --save-dev jest
    

提交回复
热议问题