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

Question: ERR_INVALID_ARG_TYPE #307

Closed
jellypuno opened this issue May 25, 2020 · 13 comments
Closed

Question: ERR_INVALID_ARG_TYPE #307

jellypuno opened this issue May 25, 2020 · 13 comments

Comments

@jellypuno
Copy link

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.

@dkelosky
Copy link
Owner

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

@jellypuno
Copy link
Author

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

@dkelosky
Copy link
Owner

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

@dkelosky
Copy link
Owner

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

@jellypuno
Copy link
Author

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?

@dkelosky
Copy link
Owner

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

@jellypuno
Copy link
Author

jellypuno commented May 29, 2020

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

@dkelosky
Copy link
Owner

Are you running Node.js 14 by chance?

@jellypuno
Copy link
Author

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

@dkelosky
Copy link
Owner

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

@jellypuno
Copy link
Author

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

@dkelosky
Copy link
Owner

Thanks @jellypuno - Ok to close?

@jellypuno
Copy link
Author

yes. Go for it 😉

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

2 participants