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

Refactor jsx-test to better support testing the automatic runtime #738

Merged
merged 1 commit into from Aug 16, 2022

Conversation

alangpierce
Copy link
Owner

Since the automatic runtime effectively doubles the number of cases needing test
coverage, plus has a number of cases within itself, this PR refactors the JSX
tests to make it easy to declare the result for multiple configurations in the
same test. This should make it smoother to write the automatic case for each
test where it feels relevant, plus makes it easier to test ESM vs CJS and dev vs
prod for the same syntax case.

Since the automatic runtime effectively doubles the number of cases needing test
coverage, plus has a number of cases within itself, this PR refactors the JSX
tests to make it easy to declare the result for multiple configurations in the
same test. This should make it smoother to write the automatic case for each
test where it feels relevant, plus makes it easier to test ESM vs CJS and dev vs
prod for the same syntax case.
@codecov
Copy link

codecov bot commented Aug 16, 2022

Codecov Report

Merging #738 (4b0e342) into main (481d673) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #738   +/-   ##
=======================================
  Coverage   87.17%   87.17%           
=======================================
  Files          54       54           
  Lines        5722     5722           
  Branches     1349     1349           
=======================================
  Hits         4988     4988           
  Misses        466      466           
  Partials      268      268           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions
Copy link

Benchmark results

Before this PR: 330.3 thousand lines per second
After this PR: 323.8 thousand lines per second

Measured change: 1.95% slower (3.17% slower to 0.44% faster)
Summary: Likely no significant difference

@alangpierce alangpierce merged commit 36b82ba into main Aug 16, 2022
@alangpierce alangpierce deleted the refactor-jsx-tests-for-automatic-runtime branch August 16, 2022 19:13
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.

None yet

1 participant