Skip to content

(es/testing) Test function panics if existing output file has invalid code when UPDATE=1 #10408

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

Open
leafypout opened this issue Apr 26, 2025 · 0 comments
Milestone

Comments

@leafypout
Copy link
Contributor

Describe the feature

When running something like UPDATE=1 cargo test, if an output file already exists for the test, say test.js, and test.js contains invalid code, e.g. a = <invalid>;, the test function will panic when trying to parse the expected code. The error should probably be silently ignored if UPDATE=1.

Babel plugin or link to the feature description

No response

Additional context

No response

@kdy1 kdy1 added this to the Planned milestone Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants