jest-json-schema:J Jest的JSON模式匹配器

时间:2021-02-03 21:06:18
【文件属性】:
文件名称:jest-json-schema:J Jest的JSON模式匹配器
文件大小:142KB
文件格式:ZIP
更新时间:2021-02-03 21:06:18
testing json jest json-schema matchers jest-json-schema JSON模式匹配器 想要为您对jest-json-schema贡献获得报酬吗? 将您的简历发送到 包含匹配器 toMatchSchema(schema) 验证对象是否与给定的匹配 it ( 'validates my json' , ( ) => { const schema = { properties : { hello : { type : 'string' } , } , required : [ 'hello' ] , } ; expect ( { hello : 'world' } ) . toM
【文件预览】:
jest-json-schema-main
----.eslintrc.json(24B)
----.github()
--------pull_request_template.md(2KB)
--------workflows()
----matchers()
--------toMatchSchema.js(4KB)
--------toBeValidSchema.js(2KB)
----commitlint.config.js(792B)
----LICENSE.txt(10KB)
----.npmignore(100B)
----CONTRIBUTING.md(4KB)
----__tests__()
--------.eslintrc.json(29B)
--------matchers()
--------index.spec.js(1KB)
--------__snapshots__()
----README.md(7KB)
----.editorconfig(295B)
----CODE_OF_CONDUCT.md(8KB)
----.gitignore(74B)
----CODEOWNERS(122B)
----index.js(1KB)
----CHANGELOG.md(1KB)
----package-lock.json(555KB)
----package.json(2KB)

网友评论