https://github.com/easingthemes/jest-output
https://github.com/easingthemes/jest-output
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/easingthemes/jest-output
- Owner: easingthemes
- Created: 2017-12-12T10:32:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-12T12:53:18.000Z (over 8 years ago)
- Last Synced: 2025-10-09T19:04:37.887Z (9 months ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**Do you want to request a _feature_ or report a _bug_?**
bug
**What is the current behavior?**
jest output is using `stderr`.
**If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can `yarn install` and `yarn test`.**
This repo (https://github.com/easingthemes/jest-output) has `task.js` file which uses `nodejs spawn` to run `npm test` (`jest`) and print output by type.
command:
```
node ./task.js
```
Output:
```
> jest
stderr: PASS ./add.test.js
stderr: add
stderr: ✓ should add two numbers (3ms)
stderr:
stderr: Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 0.582s, estimated 1s
Ran all test suites.
```
**What is the expected behavior?**
Not using `stderr` for output, use `stdout` instead.
**Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.**
```
node: v8.1.2
npm: 5.0.3
jest: ^21.2.1
MacOS 10.12.6
```