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

chore(zui): drastically improve zui test speed by removing toBeValidTypescript custom expect #476

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

franklevasseur
Copy link
Member

The custom vitest expect toBeValidTypescript below

expect(`const a: string = "banana"`).toBeValidTypescript()

was unbelievably slow.

By migrating to proper tests with clear expected values, the test execution time goes down by a factor of more than 10x (~140s to ~10s)

Copy link
Member Author

Choose a reason for hiding this comment

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

note: These tests are stupid, but the goal of this PR was not to remove tests but to make them faster. This is the closest I could get to the original tests.

@franklevasseur franklevasseur merged commit f3b96f8 into master Nov 15, 2024
1 check passed
@franklevasseur franklevasseur deleted the fl_improve_zui_ci_speed branch November 15, 2024 14:22
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