Skip to content

Use Jest and vue-test-utils #817

Open
@eddyerburgh

Description

@eddyerburgh

I'd like to make a PR that replaces mocha and karma with Jest, as well as adding vue-test-utils to the project.

The reasons for Jest over Karma/ mocha:

  • Faster
  • Less config
  • No browser
  • No webpack for tests

Another issue is requiring everything the src directory. This installs vue-router, which adds $route as a read only property to the global Vue class. This means people can't stub $route in tests, and if you don't know all the files are required before running the tests, it can be difficult to debug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions