Gathering detailed insights and metrics for jest-serializer-vue
Gathering detailed insights and metrics for jest-serializer-vue
Gathering detailed insights and metrics for jest-serializer-vue
Gathering detailed insights and metrics for jest-serializer-vue
npm install jest-serializer-vue
78.8
Supply Chain
70.9
Quality
74.5
Maintenance
100
Vulnerability
99.3
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
64 Stars
44 Commits
22 Forks
3 Watching
5 Branches
11 Contributors
Updated on 13 Nov 2024
JavaScript (69.12%)
Vue (30.88%)
Cumulative downloads
Total Downloads
Last day
-8.3%
75,527
Compared to previous day
Last week
1.8%
408,774
Compared to previous week
Last month
14.3%
1,740,768
Compared to previous month
Last year
-26.3%
20,801,719
Compared to previous year
Jest Vue snapshot serializer
npm install --save-dev jest-serializer-vue
You need to tell Jest to use the serializer. Add this to your Jest config:
"snapshotSerializers": [
"<rootDir>/node_modules/jest-serializer-vue"
]
And your snapshot tests will be pretty printed 💅
1import { shallowMount } from '@vue/test-utils' 2import Basic from './Basic.vue' 3 4describe('Basic.vue', () => { 5 it('renders correctly', () => { 6 const wrapper = shallowMount(Basic) 7 expect(wrapper).toMatchSnapshot() 8 }) 9})
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 9/30 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
74 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn Morejest-serializer-vue-tjw
A superb jest serializer for Vue snapshots
vue-cli-plugin-jest-serializer-vue-tjw
Vue CLI Plugin wrapper for Jest Serializer Vue (TJW)
jest-serializer-html
Jest snapshot serializer that beautifies HTML.
enzyme-to-json
convert enzyme wrapper to a format compatible with Jest snapshot