@vue-bridge/testing

Wrapper over vue-test-utils to enable tests in cross-version Vue libraries

Usage no npm install needed!

<script type="module">
  import vueBridgeTesting from 'https://cdn.skypack.dev/@vue-bridge/testing';
</script>

README

@vue-bridge/testing

A thin wrapper around @vue/test-utils.

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.