Skip to content

Export CI=true does not execute tests in batch mode #1258

Closed
@stefaneg

Description

@stefaneg

If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.

Description

Trying to execute test in CI environment.

Expected behavior

Tests should run and immediately terminate.

Actual behavior

Tests run, but wait for changes/user input.

Environment

npm ls react-scripts
client@0.1.0 /Users/gulli/src/ru/reference-tictactoe-student/client
└── react-scripts@0.7.0

node -v
v6.9.1

npm -v
4.0.3

Then, specify:

OSX Sierra
Browser irrelevant.

Reproducible Demo

clone https://github.com/hgop/reference-tictactoe
cd client
npm install
export CI=true
npm test

Should run tests and exit immediately since CI variable is true according to docs here:

https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#continuous-integration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions