Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined variables fix #10

Open
dariuszkorolczukcom opened this issue Nov 3, 2018 · 0 comments
Open

undefined variables fix #10

dariuszkorolczukcom opened this issue Nov 3, 2018 · 0 comments

Comments

@dariuszkorolczukcom
Copy link

The values marking the number of tests are undefined at the start:

cat_bad

To fix that issue you need to go to node_modules/jest-nyan-reporter/nyanReporter.js
and insert the following code:

if(!numFailedTests) {numFailedTests=0};
if(!numPassedTests) {numPassedTests=0};
if(!numPendingTests) {numPendingTests=0};
if(!numTotalTests) {numTotalTests=0};

just after line 102, before:

this.drawType('total tests', numTotalTests);

results:

cat-good

ZachStoltz pushed a commit to ZachStoltz/jest-nyan-reporter that referenced this issue Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant