{"library":"vitest-browser-vue","type":"library","category":null,"description":"vitest-browser-vue is a library designed for rendering Vue 3 components within Vitest's browser testing environment, adhering to the principles of `@testing-library`. It facilitates writing integration tests by exposing Vitest `locators` and utilities that mimic how users interact with components in a real browser. The current stable version is 2.1.0, with releases occurring regularly, indicating active development and maintenance. A key differentiator from `@testing-library/vue` is its cleanup strategy: it cleans up the component *before* a test starts, rather than after, allowing developers to inspect the rendered UI during debugging. It integrates seamlessly with Vitest's `page.render` and `cleanup` methods and leverages `@vue/test-utils` under the hood for component mounting and interaction. Users must ensure compatibility with `vitest` version `4.0.0` or higher and `vue` version `3.0.0` or higher.","language":"javascript","status":"active","version":"2.1.0","tags":["javascript","vue","vitest","browser","testing","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vitest-browser-vue","imports":["import { render } from 'vitest-browser-vue'","import { render } from 'vitest-browser-vue/pure'","import { config } from 'vitest-browser-vue'"]},{"cmd":"yarn add vitest-browser-vue","imports":[]},{"cmd":"pnpm add vitest-browser-vue","imports":[]}],"homepage":null,"github":"https://github.com/vitest-community/vitest-browser-vue","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vitest-browser-vue","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vitest-browser-vue/compatibility"}}