-
Notifications
You must be signed in to change notification settings - Fork 27
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
Can't Handle Functional Components #49
Comments
We're having the same issue with single page components that do not have script tags. |
@ronald-d-rogers Adding empty |
@TakahiRoyte unfortunately, it did not help me :( When I add empty
|
Solved by @TakahiRoyte's solution. Remember that is needed in every component, even children components. |
@ddosdor -- in case you haven't yet found a solution, adding |
Confirmed, this fixed it for me:
Thank you @TakahiRoyte and @daltojohnso! |
I'm submitting a ... (check one with "x")
Current behavior
functional components error out with error ‘No script available to transform’.
Expected behavior
Should not try to read a script tag from a functional component since they don't have script tags
Minimal reproduction of the problem with instructions
Try to test a functional component with jest.
What is the motivation / use case for changing the behavior?
My build system won't let me push my code because these functional components are failing tests
Please tell us about your environment:
node version 8.9.4 latest jest and related utils, max osx
jest-vue-preprocessor: 1.1.X
The latest version
Node version : [ OSX | Linux | Windows ]
8.9.4
Platform: [ OSX | Linux | Windows ]
osx
The text was updated successfully, but these errors were encountered: