beater-snapshot:beater的快照测试库

时间:2021-02-24 05:50:05
【文件属性】:
文件名称:beater-snapshot:beater的快照测试库
文件大小:65KB
文件格式:ZIP
更新时间:2021-02-24 05:50:05
TypeScript 打手快照 该软件包是Alpha版本。 您可以使用 。 快照测试库。 安装 $ npm install --save-dev beater-snapshot 用法 // test.js const { init } = require ( 'beater-snapshot' ) ; const matchSnapshot = init ( ) ; // options const actual = { your : 'test target' } ; matchSnapshot ( 'snapshot file name' , actual ) ; console . log ( 'OK' ) ; $ node test.js # Error: no snapshot $ UPDATE_SNAPSHOT=true node test.js
【文件预览】:
beater-snapshot-master
----.eslintrc.json(446B)
----.dependabot()
--------config.yml(531B)
----src()
--------fs.ts(444B)
--------index.ts(2KB)
----.travis.yml(56B)
----tsconfig.json(546B)
----LICENSE(1KB)
----test()
--------index.ts(191B)
--------json.ts(952B)
--------helpers.ts(1KB)
----README.md(1KB)
----__snapshots__()
--------object.json(35B)
--------null.json(4B)
--------array_of_number.json(12B)
--------boolean__false_.json(5B)
--------number.json(1B)
--------custom_assert_function.json(28B)
--------array_of_null.json(18B)
--------boolean__true_.json(4B)
--------string.json(5B)
--------array_of_string.json(20B)
----.gitignore(49B)
----CHANGELOG.md(3KB)
----package-lock.json(273KB)
----package.json(2KB)

网友评论