https://github.com/mattphillips/jest-no-colors-node-6
https://github.com/mattphillips/jest-no-colors-node-6
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mattphillips/jest-no-colors-node-6
- Owner: mattphillips
- Created: 2018-01-31T11:44:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-31T11:45:10.000Z (over 7 years ago)
- Last Synced: 2025-01-29T09:45:01.677Z (5 months ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jest-no-colors-node-6
When you run jest@22 in Node 6 with 20 or less test suites then any failing tests are logged with colors.
When there are more than 20 test suites colors become disabled.
To see this in action (using node 6):
```bash
# clone this repo:
git clone [email protected]:mattphillips/jest-no-colors-node-6.git# install jest
yarn install# run the test and see 1.test.js is failing and logs with colors enabled
yarn test# rename 21.xtest.js to 21.test.js to make it a valid test file
mv 21.xtest.js 21.test.js# run the tests again and see that 1.test.js is still failing but logs with no colors
yarn test
```