2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Jestの結果がおかしくなったら--clearCacheしよう。

Posted at

ある日の出来事...

.vueでレイアウトちょっと変えただけだけどいちおうテストしとこうっと。

やぁ!

yarn run test:unit

結果はどうかな?

pre.png

...なんかめちゃめちゃやんけ!!

Uncovered Lineの表示もソースコードと全然合っていません。

こんな時は慌てず騒がず(騒いだけど...)キャッシュをクリアしましょう。

うりゃ〜!

yarn run test:unit --clearCache
$ vue-cli-service test:unit --clearCache
Cleared /var/folders/2l/gq85xz3j06x5y3rzsmlnq8vr00172j/T/jest_uvl

みたいになります。

再びテストします!やぁ!!

yarn run test:unit
aft.png

ばっちりですね。

2
1
0

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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?