Configuring jest snapshots pretty format

Viewed 675

Jest snapshots produce format like:

<div
  className="forecastChart">
  <div>
    <div
      className="dow">
      Tue
    </div>
    ...

I'd prefer a more human-readable / human-composed style where tags with single attributes aren't indented:

<div className="forecastChart">
  <div>
    <div className="dow">
      Tue
    </div>
    ...

Is there a way to do this? There doesn't appear to be an option in pretty-format.

0 Answers
Related