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

chore: convert more util tests to use mock-npm #6475

Merged
merged 1 commit into from
May 19, 2023
Merged

Conversation

lukekarrys
Copy link
Contributor

@lukekarrys lukekarrys commented May 19, 2023

This converts the last remaining tests inside test/lib/utils/ to use mock-npm in place of passing in a static npm-ish object. I had this as part of #6020 originally but I'm pulling out the relevant pieces of that PR into separate PRs.

This is what originally caught the bug where --browser would always coerce the value to a string (ref #6313). These tests assert for the current broken behavior and can be fixed along with fixing that bug (or removing that behavior entirely for the --browser flag).

@lukekarrys lukekarrys requested a review from a team as a code owner May 19, 2023 02:21
@lukekarrys lukekarrys force-pushed the lk/more-mock-npm branch 2 times, most recently from d4dd7ed to 5f3ccf0 Compare May 19, 2023 03:04
@lukekarrys lukekarrys merged commit 173bc89 into latest May 19, 2023
@lukekarrys lukekarrys deleted the lk/more-mock-npm branch May 19, 2023 15:12
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