Skip to content

refactor: run_js_test_file in integration tests #752

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
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Apr 24, 2025

Rework the helper run_js_test_file() to return Result<Vec<String>, RunFailure>, which makes it more ergonomic to handle run errors in tests expecting the run to succeed.

This is a follow-up for the discussion we had in #740 (comment)

Rework the helper to return `Result<Vec<String>, RunFailure>`,
which makes it more ergonomic to handle run errors in tests
expecting the run to succeed.

Signed-off-by: Miroslav Bajtoš <[email protected]>
Copy link
Contributor

@pyropy pyropy left a comment

Choose a reason for hiding this comment

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

Nice refactor, code looks much cleaner! 👍🏻

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