LoginSignup
2
0

More than 3 years have passed since last update.

[React Testing Library] debugコマンドで出力が途切れる場合の対処方法

Last updated at Posted at 2021-04-27

Reactのテストファイルに以下関数を埋め込んで、出力をデバックするケースがあると思います。

// コンポーネントのレンダーを確認
debug()

しかしレンダー結果の行数が長い場合、以下のように3点ドットで、全て出力されないケースがあります。
スクリーンショット 2021-04-27 9.51.08.png
この場合、以下のように出力サイズを上げて確認できます。

DEBUG_PRINT_LIMIT=10000 npm test

参照リンク: Debugging

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