-
Notifications
You must be signed in to change notification settings - Fork 82
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
TypeError: array is not iterable #141
Comments
The actually problem is hidden in this line:
So it didn’t find any files matching the glob. You might want The misleading error is caused by a problem in jscodeshift. See facebook/jscodeshift#295 |
I can confirm success :) But that's the only pattern which works for me. It doesn't work when i try using any glob pattern:
gives me the same error |
Thanks. And how does your folder structure look? Do you have test files in |
All files are directly in the |
Seems like the See https://github.com/skovhus/jest-codemods/blob/master/src/cli/index.js#L251 Here if you don't give any files as command line arguments ( If you have time, it would be valuable if you can do a |
@skovhus Sure. I have added console.log in this line and it appears that globby is not even used: Here are my changes:
Logs from terminal:
Globby itself works fine on Windows, I checked it and this code prints an array with all the files in the tests folder
|
Looks like simple change is required here:
and it works now :) |
Ah, your shell is not expanding the glob! Thank you so much for this. I’ll make a fix. |
@sqal I've deployed your fix as |
@skovhus Hey. I've installed 0.19.0 and yes, can confirm that original issue is gone, but I ran into another issue. After transformation task is completed, node process just hangs on the line |
@sqal thank you so for debugging this!! I'm cutting a new release soon – I'll let you know when this is out. :) |
0.19.1 is out. Can I get you to test it? Thanks! |
Thank you! Everything works great now :) |
Hi. I would like to report a bug with latest version (0.18.0) of this package. I just installed jest-codemods on my machine (globally) and no matter what option I choose in the cli, I always get the same error
TypeError: array is not iterable
Full log
Environment
The text was updated successfully, but these errors were encountered: