发布于 2017-05-07 00:25:37 | 145 次阅读 | 评论: 0 | 来源: 网友投递
Jest JavaScript 单元测试
Jest 可帮你实现无痛的 JavaScript 单元测试支持,由 Facebook 推出。
Jest 20.0.0 发布了,
更新内容:
New --projects option to run one instance of Jest in multiple projects at the same time.
New multi project runner
New keyboard/arrow selection for watch mode typeaheads.
New --listTests flag.
New --showConfig flag.
New promise support for all expect matchers through .resolves and .rejects.
New expect.hasAssertions() function similar to expect.assertions().
New this.equals function exposed to custom matchers.
New valid-expect lint rule in eslint-plugin-jest.
New HtmlElement pretty-format plugin.
New Immutable pretty-format plugins.
New test environment per file setting through @jest-environment in the docblock.
New feature that allows every configuration option to be set from the command line.
New feature to add custom reporters to Jest through reporters in the configuration.
New feature to add expected and actual values to AssertionError.
New feature to map code coverage from transformers.
New feature to run untested code coverage in parallel.
New option to define a custom resolver.
New printing support for text and comment nodes in html pretty-format.
下载地址: