Skip to content

Resolve "Investigate usage of TurboSnap to limit snapshot usage"

I actually tested if this works in the following way:

  1. I added a commit which made a visual change in EmailLink.tsx, which then resulted in:
    → Snapshots will be limited to 1 story files affected by recent changes
Started build 271
    → View build details at https://www.chromatic.com/build?appId=6169af96fe171f004a2c1224&number=271
Running 5 tests affected by recent changes (skipping 97 tests)
  1. Then, I changed the color of it and amended it, which then resulted in:
    → Snapshots will be limited to 1 story files affected by recent changes
Started build 272
    → View build details at https://www.chromatic.com/build?appId=6169af96fe171f004a2c1224&number=272
Running 5 tests affected by recent changes (skipping 97 tests)
  1. Then, I added a commit that changed the gitlab-ci.yml file (to simulate a change that didn't change anything in any story), which then resulted in:
Starting partial build
    → Snapshots will be limited to 0 story files affected by recent changes
Started build 275

So it looks like Chromatic is working in a really smart way here with Turbosnap and works as advertised!

Closes #25 (closed)

Edited by François Martin

Merge request reports