{"library":"vue3-snapshot-serializer","type":"library","category":null,"description":"Vue 3 Snapshot Serializer is a library designed to enhance snapshot testing for Vue 3 components within Vitest and Jest environments. It is currently at version 2.13.2 and actively maintained, with frequent minor releases incorporating bug fixes and new features. The library focuses on providing cleaner, more readable snapshots by intelligently handling Vue-specific elements like scoped styles, dynamic attributes, and prop serialization. A key differentiator is its explicit support for both `@vue/test-utils` and `@testing-library/vue`, offering flexible testing approaches. It directly addresses common snapshot noise, making tests more robust and less prone to irrelevant failures. This package is exclusively for Vue 3 projects, with a separate serializer available for Vue 2.","language":"javascript","status":"active","version":"2.13.2","tags":["javascript","vue","vue3","vitest","jest","serializer","snapshots","unit","testing"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vue3-snapshot-serializer","imports":["import * as serializer from 'vue3-snapshot-serializer';","global.vueSnapshots = { removeComments: true, sortAttributes: true };","// vitest.config.js or jest.config.js\nexport default defineConfig({\n  test: {\n    snapshotSerializers: ['./node_modules/vue3-snapshot-serializer/index.js']\n  }\n});"]},{"cmd":"yarn add vue3-snapshot-serializer","imports":[]},{"cmd":"pnpm add vue3-snapshot-serializer","imports":[]}],"homepage":null,"github":"https://github.com/tjw-lint/vue3-snapshot-serializer","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vue3-snapshot-serializer","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/vue3-snapshot-serializer/compatibility"}}