Fix useless recurring Percy reviews
Created by: tjkandala
Problem
Percy requests visual review every month for GitCommitNode
. The only thing that changes is the timestamp.
Solution
Mock Date.now
before running scripts in the flaky integration test, use Date.now
in Timestamp
.
Possible alternatives
We could mock the entire Date object, either ourselves or with mockdate. There are several other instances in our application in which we construct a new Date with no arguments to get the current time, as opposed to calling Date.now
.