jest-specific-snapshot:是每个测试多个快照文件的匹配器

时间:2021-08-04 19:28:17
【文件属性】:
文件名称:jest-specific-snapshot:是每个测试多个快照文件的匹配器
文件大小:94KB
文件格式:ZIP
更新时间:2021-08-04 19:28:17
plugin jest snapshot matcher extend Jest 特定快照 每个测试的多个快照文件的 Jest 匹配器 您可以在阅读有关实施的 安装 npm i -D jest-specific-snapshot 例子 const path = require ( 'path' ) ; // extend jest to have 'toMatchSpecificSnapshot' matcher require ( 'jest-specific-snapshot' ) ; test ( 'test' , ( ) => { // provides snapshot file with absolute file const pathToSnap = path . resolve ( process . cwd ( ) , './example/specific/dir/my.shot' ) ; expect ( 100 ) . t
【文件预览】:
jest-specific-snapshot-master
----.gitattributes(65B)
----yarn.lock(226KB)
----.eslintrc.js(1020B)
----src()
--------index.js(2KB)
----.babelrc(47B)
----.circleci()
--------config.yml(657B)
----.npmignore(91B)
----example()
--------specific.snapshot.test.js(1KB)
--------specific()
----LICENSE(1KB)
----README.md(2KB)
----.editorconfig(70B)
----.gitignore(48B)
----.eslintignore(17B)
----package.json(1KB)

网友评论