Skip to content
This repository was archived by the owner on Oct 15, 2019. It is now read-only.

bethrogers24/vue-jest-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ELR Vue Test Helpers

A small library of test methods to speed up Vue component testing

Build Status License: MIT npm

For use with VueTestUtils and Jest

npm install elr-vue-jest-helpers --save-dev

or

yarn add elr-vue-jest-helpers -D

import helpers from 'elr-vue-jest-helpers'; 

Initialize the helpers library in your beforeEach pass in the Vue component instance pass in the expect method from Jest

h.init(wrapper, expect); 

Methods

  • Select
  • Type
  • Blur
  • Submit
  • Clear
  • Click
  • Emit
  • DoesNotEmit
  • PayloadEquals
  • Contains
  • DoesNotContain
  • Matches
  • See
  • Html
  • HasStyle
  • IsHidden
  • IsValidInput
  • IsInvalidInput
  • HasCount
  • hasClass
  • notToHaveClass

About

a collection of helper methods for testing vue components

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published