-
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
Transformation error with Ava #58
Comments
Thanks for reporting this @spinningarrow . First thing it to find the file that causes this and narrow down a minimal example of a source code that yields this error. And then either paste it here or make a PR where you add a test that documents this failure (the TDD way). |
@spinningarrow did you have time to come with source code that gave you this error? Would like to fix this. : ) |
Hey, thanks for following up. The code I was trying it on isn't open source and I haven't found the time to come up with a minimal example yet. Will try to do it soon! |
@spinningarrow I'll keep this open a bit more... Would really love to get this fixed. |
Hi @skovhus, thanks for your patience. I managed to come up with a minimal example: import test from 'ava';
const someFunction = _ => 1;
test('minimal test that throws a transformation error', t => {
const result = someFunction();
t.is(result);
}); The error is:
Looking at the Ava docs, it looks like the error is actually in the test itself - |
Thanks for digging this up! I'll have a look. |
Thanks @spinningarrow ! Released as 0.13.4. https://github.com/skovhus/jest-codemods/releases/tag/0.13.4 |
Very helpful issue. And thanks for the fix @skovhus. Just wanted to add for anyone else coming across this that an empty As noted, that error means there's something wrong with the ava test itself. In my case, |
Thanks for sharing. Another good reason for migrating to Jest. |
I'm getting this error with some of my test files (which are written using Ava):
How do I go about figuring out where the problem lies?
The text was updated successfully, but these errors were encountered: