Skip to content

Npm test never stops executing #25250

Discussion options

You must be logged in to vote

It seems that when you execute the command npm test , you should explicitly set the environment variable CI , no matter its value is true or false.

You can try the below 2 methods to set this environment variable:

  • Set CI directly in the command line, for example on Linux, macOS (Bash).

    CI=true npm test

  • Define CI as an environment variable in the workflow.

    env:
     CI: true

We can define it on workflow level, job level or step level, so that it can be available for different scopes.

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
10 participants