[jest-lite]: Support test mode and jsx files #6853
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Open in CodeSandbox Web Editor | VS Code
What kind of change does this PR introduce?
.jsx
test files (.tsx
is already supported so seems strange thatjsx
isn't - not sure if I missing something?)mode
value to Codesandboxadd_test
event. This value is part of the jest-circus event and would be useful to propagate as part of the codesandbox event.By adding this missing
mode
it will be easier to report the tests correctly in SandpackTests which currently assumes anything notrunning
/pass
/fail
to be skipped which isn't strictly true.You can see that
mode
is part of the jest-circus event type here and herecc/ @danilowoz
What is the current behavior?
jsx
tests aren't foundmode
isn't sent as part of the payloadWhat is the new behavior?
jsx
tests should be foundmode
will be sent as part of the payloadWhat steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.
I've not tested this
Checklist