dkelosky / jest-stare

Jest HTML Reporter and Results Processor

Home Page:https://dkelosky.github.io/jest-stare/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: ERR_INVALID_ARG_TYPE

jellypuno opened this issue · comments

Capture

I am having this error when I run my unit test. As I understand correctly, it is an error when using fs? I am not sure. Maybe it is just me and I am missing some modules.

I think this is another reporter failing. Are there some steps I can use to reproduce this?

it happens whenever I click npm run:test in Zowe Explorer

I'll pull it and give it a shot. Thank you

Is it just npm run test in on the master branch? Is it the unit tests? I'm unable to reproduce this.

I am running npm run test:unit on master branch. I recently re-imaged my PC. Do you think the error can happen because of that?

I'm trying a few different scenarios but am unable to reproduce. I'd like to get to the bottom of this though because last time we found that mocking issue.

Is there anything else special about your environment besides reimaging your machine? Is anyone else getting this error?

I think something else is failing though, after this line, jest-stare no longer has control:
image

hmm. I don't know. At first I was thinking, maybe because i'm using VSCode Insiders but I ran the test in regular VSCode and the error is still there:

Capture

Maybe there's something in the log?
2020-05-29T12_03_04_624Z-debug.log

Are you running Node.js 14 by chance?

aha! yes I am :) do you think that's the culprit?

i think so - it looks like graceful-fs may be failing the same way this project is under the Node 14 changes

I see. So no issues then 😄 Thank you for investigating it.

Thanks @jellypuno - Ok to close?

yes. Go for it 😉