Skip to content

reno184/vueJS-unit-test

Repository files navigation

project setup

npm

use npm jest-fetch-mock

test components features

About View

See Official doc vue-test-util-wrapper See digitalocean

  • Test component exist - sanitize
  • Test HTML contain some specific text
  • Test set data
  • Test prop
  • Test button click - message success
  • Test button click - message error
  • Test class exist

HelloWord

This component show the utilisation of test helpers function See Official doc vue-test-util-wrapper See this helpers function github dekadentno Some examples

  • hasAttribute
  • find
  • isHidden
  • domHasLength

layer services

Test two exported function into utilities files, with jest snapshot

todo

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your unit tests

npm run test:unit

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published