【文件属性】:
文件名称:jest-fast-check:基于快速检查的Jest基于属性的测试
文件大小:190KB
文件格式:ZIP
更新时间:2021-02-12 15:43:14
TypeScript
基于Jest的基于属性的测试
使基于属性的测试框架的快速检查功能变得有趣。 jest-fast-check简化了将快速检查集成到jest测试框架中的过程。
入门
安装jest-fast-check及其对等依赖项:
# With yarn
yarn add -D jest fast-check jest-fast-check
# With npm
npm install --save-dev jest fast-check jest-fast-check
例
import { testProp , fc } from "jest-fast-check" ;
// for all a, b, c strings
// b is a substring of a + b + c
testProp (
"should detect the substring" ,
[ fc . str
【文件预览】:
jest-fast-check-main
----.gitignore(55B)
----tsconfig.json(445B)
----README.md(2KB)
----.github()
--------workflows()
--------dependabot.yml(106B)
--------FUNDING.yml(75B)
----test()
--------itProp.spec.ts(1012B)
--------testProp.spec.ts(961B)
----package.esm-template.json(24B)
----test-bundle()
--------commonjs()
--------esm()
----.prettierrc(104B)
----LICENSE(1KB)
----test.sh(742B)
----package.json(2KB)
----src()
--------jest-fast-check.ts(3KB)
----yarn.lock(153KB)