vue-composable-testing

JSON →
library 0.2.0 ·javascript
verified Jun 4, 2026

A lightweight utility for testing Vue 3 composables outside of a full component context. v0.2.0 enables developers to invoke composables with `renderComposable`, inspect reactive state via the `result` object, and handle lifecycle hooks like `onUnmounted` by manually unmounting the underlying component. Supports Vue plugins (e.g., Pinia) and provider/inject patterns via a custom wrapper. Ships TypeScript types. Alternative to mounting a full SFC or using `@vue/test-utils` composable test helpers, with a simpler API focused on composable logic.