【文件属性】:
文件名称:ts-jest-power-assert
文件大小:72KB
文件格式:ZIP
更新时间:2021-02-16 10:59:37
TypeScript
ts-jest-power-assert
示例jest配置以设置以使用
运行测试
$ yarn test
测试应失败并显示描述性错误消息:
Message:
# src/add.spec.ts:11
assert(add_1.add(a, b) === c)
| | | | | |
| | | | | 4
| 5 2 3 false
Object{add:#function#}
[number] c
=> 4
[number] add_1.add(a, b)
=> 5
【文件预览】:
ts-jest-power-assert-master
----integration()
--------run-jest.integration-test.ts(608B)
--------__snapshots__()
----.github()
--------workflows()
----yarn.lock(167KB)
----src()
--------add.ts(72B)
--------add.spec.ts(310B)
----jest.integration.js(189B)
----tsconfig.json(507B)
----jest.config.js(339B)
----README.md(525B)
----.editorconfig(58B)
----.gitignore(63B)
----typedef.d.ts(1KB)
----package.json(787B)