Skip to content

Running tests with jest seems to trigger a change in environment variables #5322

Description

@janpieterz

Cross post for GoogleChrome/chrome-launcher#86

I've created a reproduction here: https://github.com/janpieterz/find-chrome-issue

npm start works, npm test fails.

I launch a Chromeless instance and do something there, this uses chrome-launcher internally to launch a chrome instance. This relies on certain environment variables to detect the Program files folders. These should be case insensitive on Windows + Node, but somehow running it with Jest seems to make them case sensitive.

This is present on:
OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.16299 N/A Build 16299

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions