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

tests: e2e test for analytics #175

Merged
merged 5 commits into from
May 16, 2024
Merged

Conversation

justinvdm
Copy link
Contributor

No description provided.

Copy link

linear bot commented May 15, 2024

S-2116 e2e test for analytics

Basic e2e tests to make we don't have have regressions in our analytics without knowing about it until much later

@justinvdm justinvdm requested review from avallete and jgoux May 16, 2024 07:43
Copy link
Contributor

@jgoux jgoux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job Justin, it wasn't an easy one from a test setup perspective!

Comment on lines +21 to +24
const now =
process.env["SNAPLET_NOW"] && !isNaN(+process.env["SNAPLET_NOW"])
? +process.env["SNAPLET_NOW"]
: Date.now();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I see code like this, I really understand the case for dependency injection. 😂

@justinvdm justinvdm merged commit e04aba9 into main May 16, 2024
4 checks passed
@justinvdm justinvdm deleted the justin/s-2116-e2e-test-for-analytics branch May 16, 2024 12:21
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.

2 participants