メインコンテンツへスキップ

Jest 29: スナップショットフォーマットの変更

· 読むのにかかる時間 1分
Simen Bekkhus
Simen Bekkhus

Just 28 から数カ月後しか経っていませんが、Jest 29 がリリースされました。 As mentioned in the Jest 28 blog post, this version contains just a couple of breaking changes, in order to make the upgrade as smooth as possible.

注意が必要な破壊的変更は、以下の点だけです。

  • Node バージョン 12 および 17 のサポート終了。いずれも EOL を迎えました。

  • The snapshotFormat property is changed to:

    + snapshotFormat: {
    + escapeString: false,
    + printBasicPrototype: false
    + }
  • jest-environment-jsdom has upgraded jsdom from v19 to v20

There are certain changes to the types exposed by Jest, but probably (hopefully!) nothing that should impede the upgrade. Please see the upgrade guide for more details.

破壊的変更については以上ですべてです。 Jest 28 からのアップグレードパスがスムーズなものであることを願っています。 Please see the changelog for other changes.

Thanks for reading, and happy Jesting! 🃏