Socket
Socket
Sign inDemoInstall

@dawnjs/dn-middleware-jest

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dawnjs/dn-middleware-jest

Jest middleware for dawn project's unit-test.


Version published
Maintainers
4
Created
Source

@dawnjs/dn-middleware-jest

npm npm

Jest 单元测试中间件

功能亮点

  • 支持零配置快速集成单元测试
  • 支持丰富的扩展能力
  • 与其他 testing library 友好集成

示例

# 简单使用
unit:
  - name: jest

# watch mode
unit:watch:
  - name: jest
    watch: true

# 更多参数
unit:argv:
  - name: jest
    argv:
      - --cache
      - --ci

更多 CLI config 请参考: https://jestjs.io/zh-Hans/docs/cli

配置项说明

watch

类型:boolean
默认值:false

监视文件更改,并重新运行与已更改的文件相关的测试

watchAll

类型:boolean
默认值:false

监视文件的更改并在任何更改时重新运行「所有测试」

coverage

类型:boolean
默认值:true

将测试覆盖率信息输出为报告

debug

类型:boolean
默认值:false

打印关于 Jest 配置的调试信息

silent

类型:boolean
默认值:false

阻止所有测试通过控制台输出信息

argv

类型:string[]
默认值:null

所有 Jest CLI 支持的命令行参数,请查看文档:https://jestjs.io/zh-Hans/docs/cli

FAQs

Package last updated on 17 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc