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: small test infrastructure #672

Merged
merged 2 commits into from
Nov 4, 2023

Conversation

msdlisper
Copy link
Contributor

Summary

small refactor for #669

I divided it into two commits. The first one is a more confident replacement, and the second one I found that some tests were not written in full compliance with the rules, so I need help to check🧐

@github-actions github-actions bot added the A-CLI Area: CLI label Nov 4, 2023
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Great contribution here! Thank you

let mut content = String::new();
file.read_to_string(&mut content)
.expect("failed to read file from memory FS");
assert_file_contents(&fs, file_path, expect);
Copy link
Member

Choose a reason for hiding this comment

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

Here you went beyond the task; fantastic work! Not sure why the old code is like this... we completely forgot to do the content assertion!

@ematipico ematipico merged commit d090beb into biomejs:main Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CLI Area: CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants