-
Notifications
You must be signed in to change notification settings - Fork 27
TypeError: Jest: a transform's process
function must return a string,
#42
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
Comments
@rokkerruslan did you solve this issue? |
Any solution about this? Having the same issue. |
Same here, any solutions? |
@khanharis87 @Michael-Gungaram @RehanSaeed Not sure if still relevant for you guys, but maybe it is for everyone else having this issue. I had the same problem. Turned out that the problem only occurred when using Object spread syntax. The object spread syntax isn't supported by babel-core, so I had to install a plugin for that and add it to my .babelrc file. Check https://babeljs.io/docs/plugins/transform-object-rest-spread for more information about the plugin. The problem could also occur with any other es7/es[future-releases] syntax your using in your files which is not supported by babel-core. |
thx @jeroenschieven ! I was having the same problem. |
I am experiencing the same problem while using Typescript. Any solutions? |
i had to add "jest-junit": "13.0.0", to package.json and the problem went away |
I'm submitting a ... (check one with "x")
Current behavior
Fails with that errors:
Expected behavior
Mormal completion of tests
Minimal reproduction of the problem with instructions
Minimal example here may be big) so I created minimal test example project.
Project contains vue app, and 2 type of tests. Testing .ts files and .vue componet.
https://gitlab.com/rokkerruslan/jest-ts-vue-test
What is the motivation / use case for changing the behavior?
I need testing as simple ts files and vue components files.
Please tell us about your environment:
npm 5.5.1
1.3.1
Node version : [ OSX | Linux | Windows ]
v9.0.0
Platform: [ OSX | Linux | Windows ]
Linux rpc 4.10.0-37-generic mapCoverage:true produces misleading Line in coverage report (wrong sourcemaps) #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Thanks for any asnwers!
The text was updated successfully, but these errors were encountered: