LoginSignup
0

More than 5 years have passed since last update.

jestのテストで存在しないファイルをしようとするとき

Posted at

結論

再インストールすれば直る

$ yarn remove jest
$ yarn add --dev jest

試してダメだったこと

noキャッシュ。
しかしキャッシュを参照してダメ。

$ yarn run test -- --no-cache

原因

おそらく使ってないスナップショットを残してテストを書き換えたところ発生した感じがある

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0