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

后端 未结 7 1825
伪装坚强ぢ
伪装坚强ぢ 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

    You should downgrade installed jest to v20.0.4 npm install -D jest@20.0.4

提交回复
热议问题