A Vue.js testing utility library

A Vue.js testing utility library

A Vue.js testing utility library .This library will be deprecated once vue-test-utils is released.


a Vue.js testing utility library


This library will be deprecated once vue-test-utils is released.


npm install --save-dev avoriaz


Visit the docs


Assert wrapper contains a child
import { mount } from 'avoriaz'
import Foo from './Foo.vue'

const wrapper = mount(Foo)
Shallow render components
import { shallow } from 'avoriaz'
import Foo from './Foo.vue'
import Bar from './Bar.vue'

const wrapper = shallow(Foo)
Assert style is rendered
const button = wrapper.find('div > button .button-child')[0]
expect(button.hasStyle('color', 'red')).to.equal(true)
Assert method is called when DOM event is triggered
const clickHandler = sinon.stub()
const wrapper = mount(Foo, {
  propsData: { clickHandler }
wrapper.find('div .bar')[0].trigger('click')
Assert wrapper contains text
const title = wrapper.find('h1.title')[0]
expect(title.text()).to.equal('some text')
Inject globals
const $route = { path: 'http://www.example-path.com' }
const wrapper = mount(Foo, { 
    globals: {
Inject slots
const wrapper = mount(Foo, { 
    slots: {
        default: Foo
Set data
  someData: 'some data'

expect(wrapper.vm.someData).to.equal('some data')
Update props
  someProp: 'some prop',
  anotherProp: 'another prop'

For more examples, see the docs

Download Details:

Author: eddyerburgh

Live Demo: https://eddyerburgh.gitbooks.io/avoriaz/content/

GitHub: https://github.com/eddyerburgh/avoriaz

vue javascript vuejs vue-js

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

8 Popular Websites That Use The Vue.JS Framework

In this article, we are going to list out the most popular websites using Vue JS as their frontend framework. Vue JS is one of those elite progressive JavaScript frameworks that has huge demand in the web development industry. Many popular websites are developed using Vue in their frontend development because of its imperative features.

Vue ShortKey plugin for Vue.js

Vue-ShortKey - The ultimate shortcut plugin to improve the UX .Vue-ShortKey - plugin for VueJS 2.x accepts shortcuts globaly and in a single listener.

A Vue.js wrapper component for Grid.js

A Vue wrapper component for Grid.js. Grid.js is a Free and open-source HTML table plugin written in TypeScript. It works with most JavaScript frameworks.

Vue.js image clipping Components using Vue-Rx

vuejs-clipper .Vue.js image clipping components using Vue-Rx. Add image clipping components to your Vue application in nothing flat. Touch devices supported and fully responsive.

Vue.js JWT Authentication with Vuex and Vue Router

Build a Vue.js JWT Authentication application using Vuex, Vue Router, VeeValidate - JWT authentication with Vue, Vuex, Vue Router that supports VeeValidate