Skip to content

Can't Handle Functional Components #49

@candyapplecorn

Description

@candyapplecorn

I'm submitting a ... (check one with "x")

[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions