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: update test to handle case when env var is set #304

Merged
merged 4 commits into from
Sep 4, 2023

Conversation

styfle
Copy link
Member

@styfle styfle commented Sep 4, 2023

Comment on lines 263 to 266
// To ensure we test the default behavior, we must remove these env vars
// in case the local machine already set these values.
delete process.env.COREPACK_ENABLE_STRICT;
delete process.env.FORCE_COLOR;
Copy link
Contributor

Choose a reason for hiding this comment

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

We should move it to setupTests.js, to ensure a consistent environment for all tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea! I pushed an update 👍

@arcanis arcanis merged commit cc33de0 into nodejs:main Sep 4, 2023
10 checks passed
@styfle styfle deleted the patch-1 branch September 4, 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.

Tests assume COREPACK_ENABLE_STRICT unset
2 participants