1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 Jest 20.0.0 发布,JavaScript 单元测试工具 下载

本帖由 漂亮的石头2017-05-07 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    487,979
    赞:
    47
    Jest 20.0.0 发布了,Jest 是 Facebook 开源的无痛 JavaScript 测试工具。Jest 默认使用 Jasmine assertions,模块化,可扩展、可配置。Jest 也可以捕获 React 或其他可序列化值的快照,以便快速编写测试,并提供无缝的更新体验。

    更新内容:


    • 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 单元测试工具下载地址
     
正在加载...