Skip to content

Add more unit testing examples to guide  #401

Closed
@chrisvfritz

Description

@chrisvfritz

These aren't really Vue-specific testing tips, but I think they could still be helpful for people. This is a list that will probably grow as I (or others) think of more things.

  • Using spies to ensure something happens in a lifecycle hook
  • Mocking Ajax requests
  • Mocking external dependencies

Vuex stores/modules

  • Testing initial state
  • Testing actions
  • Testing mutations
  • Testing getters

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