-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: snapshot drift issue #7
Conversation
in the time calc there may be subtle drift if our date-fns parsing "copies" certain elements from the runtime clock when they're not defined in our date strings
Preview build deployed to: https://ead93e50.genocide-club.pages.dev |
Preview build deployed to: https://e8a5cf17.genocide-club.pages.dev |
Preview build deployed to: https://c22baa5c.genocide-club.pages.dev |
Preview build deployed to: https://d6c412ef.genocide-club.pages.dev |
Preview build deployed to: https://2b3ec6c9.genocide-club.pages.dev |
@@ -47,7 +49,7 @@ export const getTimeline = ({ | |||
svgDomain: ReturnType<typeof getSvgDomain>; | |||
dataFetcher?: typeof getData; | |||
}) => { | |||
const { firstDateVal, realTimeDuration } = getTimelineBounds(); | |||
const { firstDateVal, realTimeDuration } = getTimelineBounds(dataFetcher); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was the issue - was importing from my local file so the snapshot included Jan date range whereas our test fixture only goes to the end of 2023
Preview build deployed to: https://e1b69ade.genocide-club.pages.dev |
For some reason it's flakey