question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Alpha 3.0.0-next.68 test --coverage enters watch mode

See original GitHub issue

Is this a bug report?

Yes

Did you try recovering your dependencies?

Yes.

yarn --version: 1.15.2

Which terms did you search for in User Guide?

alpha test --coverage enters watch mode

Environment

Environment Info:

System: OS: Linux 4.15 Ubuntu 18.04.2 LTS (Bionic Beaver) CPU: x64 Intel® Core™ i7-7600U CPU @ 2.80GHz Binaries: Node: 10.15.3 - /usr/bin/node Yarn: 1.15.2 - /usr/bin/yarn npm: 6.4.1 - /usr/bin/npm Browsers: Chrome: 73.0.3683.103 Firefox: 66.0.3 npmPackages: react: ^16.8.6 => 16.8.6 react-dom: ^16.8.6 => 16.8.6 react-scripts: 3.0.0-next.68 => 3.0.0-next.68+4b5b76b7 npmGlobalPackages: create-react-app: 1.5.2

Steps to Reproduce

In terminal

npx create-react-app@next --scripts-version=3.0.0-next.68 app-name 
cd app-name
yarn test --coverage

Check terminal output

Expected Behavior

Run a jest test coverage report.

Actual Behavior

Looks like it is doing a coverage report, but seems to enter jest watch mode.

image

Reproducible Demo

https://github.com/jkdowdle/creact-react-app-3.0.0-next.68-test-coverage-issue

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
bugzpoddercommented, Apr 17, 2019

Hi @jkdowdle, Thanks for testing the latest alpha. This is an intentional change. jest did not support watch mode and coverage at the same time last year, so the previous behavior of yarn test --coverage did not run in watch mode.

Now that jest supports --coverage flag in watch mode, the following behaviors are supported by default: yarn test --coverage which runs jest in watch mode and prints coverage of the touched files yarn test --coverage --watchAll=false which runs jest in non-watch mode and prints coverage of all files.

1reaction
iansucommented, Apr 17, 2019

Likely related to this change: #4176

Read more comments on GitHub >

github_iconTop Results From Across the Web

Untitled
Watch modern family season 5 episode 23, Buddy handleson, Tida omoromachi! ... Noc bez sna cover, Studentenwerke bielefeld, Alpha 5.20 interview youtube, ...
Read more >
Untitled
Menghujam jantungku cover acoustic, Hyetal northwest passage, Wait for turn. ... Lettera pastorale vescovo beschi, Test brunner kamin, Banderas europa en ...
Read more >
Scalability and performance OpenShift Container Platform 4.11
OpenShift Container Platform environment and configuration on which the cluster maximums are tested" Collapse section "9.2.
Read more >
DHS Contraceptive Calendar Tutorial - The DHS Program
It then provides an example of the contraceptive discontinuation rates using the event file. Programs and coding resources. The tutorial comes with a...
Read more >
10-33: Radio Operator Handbook - GlobalSecurity.org
modes. It operates over a 30–512 MHz frequency rage in FM, AM, or ... and COMSEC information but inaccurate time (+ or –...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found