Closed nicojs closed 1 year ago
@astefanutti I finally got around to implementing your suggestion from https://github.com/astefanutti/decktape/pull/254#pullrequestreview-1233880110
I started working on my old branch, which is why you see a long history in this PR. Let's squash merge this.
This might help. I've squashed the commits.
Thanks!
Use PDFs as snapshots instead of *.png files. Snapshot PDFs are stored in the
test/snapshot
and should mimic the dir name intest/input
(with.pdf
). Updating snapshots works the same way: using theupdate-snapshots
workflow.In the CI pipeline now works as follows:
test/e2e.spec.ts-snapshots
based ontest/snapshot/{input-dir-name}.pdf
.test/output/{input-dir-name}.pdf
based ontest/input/*
.test/e2e.spec.ts-snapshots
as snapshotsThe 'Update snapshots' workflow now works as follows:
test/output/{input-dir-name}.pdf
directory based ontest/input/*
.rm -rf
) thetest/snapshot
directory.test/output
directory totest/snapshot
.