Skip to content

Expose a way to run test in non-interactive mode without defining CI #408

@etienne-dldc

Description

@etienne-dldc

Current Behavior

  • yarn test start jest in interactive mode
  • Setting CI=true start jest in non-interactive mode but without colors because most tools only check wether or not the CI environment variables exist an not it's value:
    https://github.com/watson/ci-info/blob/master/index.js#L53
    Because of this you loose some functionalities, like colors when using tools like np or lerna.

Desired Behavior

Being able to run tsdx test in non-interactive way without setting the CI variable.

Suggested Solution

Using a different environment variable name to disable "auto watch mode":

TSDX_AUTO_WATCH=false tsdx test

Who does this impact? Who is this for?

This impact everyone who was using tsdx test in non-interactive mode outside of a CI.
It would make the migration from 0.11 to 0.12 easier.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions