Closed kallaspriit closed 6 years ago
The line is (Promise && getTag(Promise.resolve()) != promiseTag)
.
I don't see how that is not resolving a promise.
Maybe your issue is related to https://github.com/facebook/jest/issues/6639 and all you need is to update jest?
Also, just for the record, the line erroring is not json2csv's code but babel polyfills code.
Ok, probably a false positive then. I'm using the latest jest@23.4.2.
Closing this since we haven't heard about it for a while.
@kallaspriit it might be good for the next person getting here if you could share how you got rid of the error.
When using json2csv in my project alsongside with Jest, I'm getting the warning:
Jest did not exit one second after the test run has completed.
Running jest with --detectOpenHandles gives me:
So it seems that the library creates some promise that does not get resolved/rejected so Jest continues to wait for it for a while and then quits. I tried removing the use of the library and the problem goes away.
The code I'm using: