Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Make --debug set Jest verbose option from false to true #523

Merged
merged 1 commit into from
Dec 4, 2017
Merged

Make --debug set Jest verbose option from false to true #523

merged 1 commit into from
Dec 4, 2017

Conversation

ahulab
Copy link
Contributor

@ahulab ahulab commented Dec 4, 2017

Should result in output that looks like the below, assuming there is more than one test.

 PASS  test/simple_test.js
  simple
    ✓ should be sane (5ms)
    ✓ should be sane1
    ✓ should be sane2 (1ms)
    ✓ should be sane3
    ✓ should be sane4 (1ms)

Test Suites: 1 passed, 1 total
Tests:       5 passed, 5 total
Snapshots:   0 total
Time:        1.682s
Ran all test suites.

Test

I tested this by creating a test project, adding neutrino, neutrino-preset-jest, and neutrino-preset-node and then adding 5 tests. The output is above. I verified that it worked with the following test command:
"neutrino test --debug --use neutrino-preset-node neutrino-preset-jest

I also tested that it worked by turning debug on in a .neutrinorc.js file

Note

I looked for a 'debug' option as well in the jest documention like #389 mentioned, but didn't see one. For debugging, it looks like jest has only "verbose"

Refs: #389

Sorry for closing the previous and opening a new one. I had my git user info all incorrect on this user.

Copy link
Member

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you so much for this!

@eliperelman eliperelman merged commit 5db197a into neutrinojs:master Dec 4, 2017
@edmorley edmorley mentioned this pull request Mar 21, 2018
8 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

2 participants