@vue-bridge/testing

Wrapper over vue-test-utils to enable tests in cross-version Vue libraries
5,249 45
Install
npm install @vue-bridge/testing
Latest Version:0.2.1
Vue:2 · 3
License:MIT
Last Updated:Nov 7, 2022
Links: GitHub  ·  npm
Maintainer: linusborg

@vue-bridge/testing

current npm version NPM npm downloads per month

A thin wrapper around @vue/test-utils.

https://vue-bridge-docs.netlify.app/reference/testing

It re-exports all APIs of that package, but replaces mount and shallowMount with wrapper functions that ensure cross-compatibility between the two different APIs of @vue/test-utils for Vue 2 and Vue 3, respectively.

Related Packages

@vue-bridge/vite-plugin

A Vite Plugin to build Vue libraries for both Vue 2 and Vue 3

3,927 45
@vue-bridge/runtime

A library achieving partial runtime compat between Vue 2 and Vue 3 components

205,808 45

Version History

Version Released Vue License
0.2.1 ^2.7.0-0 || ^3.2.* MIT
0.2.0 ^2.7.0-0 || ^3.2.* MIT
0.1.2 ^2.6.* || ^3.2.* MIT
0.1.1 ^3.2.26 MIT
0.1.0 ^3.2.26 MIT