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(grit): add Grit testing infrastructure #3406

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

arendjr
Copy link
Contributor

@arendjr arendjr commented Jul 11, 2024

Summary

Adds testing infrastructure so we can conveniently start adding snapshot tests for Grit patterns.

Test Plan

CI should pass.

@arendjr arendjr requested a review from a team July 11, 2024 09:47
Comment on lines +8 to +19
Range {
start: Position {
line: 1,
column: 4,
},
end: Position {
line: 1,
column: 4,
},
start_byte: 25,
end_byte: 28,
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The snapshot already highlights a bug, since the calculated line and column numbers are always the same, even if the byte ranges are correct. I didn't want to start bugfixing in the same PR however, so this will be a follow-up fix :)

@arendjr arendjr changed the title chore: Grit testing infrastructure chore(grit): add Grit testing infrastructure Jul 11, 2024
Copy link

codspeed-hq bot commented Jul 11, 2024

CodSpeed Performance Report

Merging #3406 will degrade performances by 7.05%

Comparing arendjr:grit_testing_infra (8347a69) with main (b791bb3)

Summary

❌ 1 regressions
✅ 107 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main arendjr:grit_testing_infra Change
db_2930068967297060348.json[cached] 12.8 ms 13.7 ms -7.05%

@arendjr arendjr closed this Jul 11, 2024
@arendjr arendjr reopened this Jul 11, 2024
@arendjr arendjr merged commit 6b1e518 into biomejs:main Jul 11, 2024
26 of 28 checks passed
@Conaclos Conaclos added the A-Changelog Area: changelog label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Changelog Area: changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants