发布于 2017-05-07 00:25:37 | 136 次阅读 | 评论: 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.

完整更新内容

下载地址:



历史版本 :
Jest 20.0.0 发布,JavaScript 单元测试工具
Jest 18.1.0 发布,JavaScript 单元测试工具
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务