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

Decouple process.env #1688

Closed
wants to merge 1 commit into from
Closed

Decouple process.env #1688

wants to merge 1 commit into from

Conversation

aslakhellesoy
Copy link
Contributor

This is necessary in order to make tests behave independently of the value of environment variables such as CUCUMBER_PUBLISH_TOKEN.

@aslakhellesoy aslakhellesoy added 🔧 build Related to build / release process ⚡ enhancement Request for new functionality labels Jun 1, 2021
@davidjgoss davidjgoss self-requested a review June 1, 2021 14:56
Copy link
Contributor

@davidjgoss davidjgoss left a comment

Choose a reason for hiding this comment

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

LGTM, just needs changes to the support code for feature tests I think.

Also not sure if there's anything specific we need to do for parallel runtime?

@@ -41,6 +41,7 @@ export interface IConfiguration {
export interface INewConfigurationBuilderOptions {
argv: string[]
cwd: string
env: Record<string, string | undefined>
Copy link
Contributor

Choose a reason for hiding this comment

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

Could type as ProcessEnv from @types/node?

@charlierudolph
Copy link
Member

Nice!

@mattwynne
Copy link
Member

@aslakhellesoy is this still a live problem for you? I notice it has a lot of merge conflicts now.

@davidjgoss
Copy link
Contributor

@mattwynne I think these changes were effectively added under #1849, looking at the state of the files now seems like the same outcome.

@mattwynne mattwynne closed this Feb 10, 2022
@mattwynne
Copy link
Member

Great, thanks for the update David. I'll close the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 build Related to build / release process ⚡ enhancement Request for new functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants