Skip to content
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

Merged
merged 10 commits into from
Jan 29, 2024
Merged

fix: snapshot drift issue #7

merged 10 commits into from
Jan 29, 2024

Conversation

sterlingwes
Copy link
Owner

For some reason it's flakey

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
Copy link

Preview build deployed to: https://ead93e50.genocide-club.pages.dev

Copy link

Preview build deployed to: https://e8a5cf17.genocide-club.pages.dev

Copy link

Preview build deployed to: https://c22baa5c.genocide-club.pages.dev

Copy link

Preview build deployed to: https://d6c412ef.genocide-club.pages.dev

@sterlingwes sterlingwes marked this pull request as ready for review January 29, 2024 21:14
Copy link

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);
Copy link
Owner Author

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

Copy link

Preview build deployed to: https://e1b69ade.genocide-club.pages.dev

@sterlingwes sterlingwes merged commit f9785eb into main Jan 29, 2024
2 checks passed
@sterlingwes sterlingwes deleted the tests-stable-2 branch January 29, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant