Socket
Socket
Sign inDemoInstall

jest-ado-reporter

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jest-ado-reporter

Reports jest test suite progress information to the pipeline step in Azure DevOps.


Version published
Weekly downloads
1.1K
increased by15.98%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

jest-ado-reporter

Reports jest test suite progress information to the pipeline step in Azure DevOps. Useful for displaying progress when you have a lot of tests to run.

 

Screen recording of the progress example

 

Installation

Add the dependency to your application.

npm i --save-dev jest-ado-reporter
# - or -
yarn add -D jest-ado-reporter

You can then add the reporter to your jest configuration (e.g.: jest.config.ts)

import type { Config } from "jest";

const config: Config = {
  reporters: ["default", "jest-ado-reporter" /* add this */],
};

export default config;

 

Options

enabled

Type of boolean.

The reporter will only output logging commands when running in a Azure DevOps pipeline. If you would like to force this locally for debugging purposes, you can set the enabled option to true.

Example:

['jest-ado-reporter', { enabled: true }],

Output locally, when used in parallel with the default reporter:

$ jest
##vso[task.setprogress value=1;]jest
 PASS   test5.spec.tsx
##vso[task.setprogress value=17;]jest
 PASS   test2.spec.tsx
##vso[task.setprogress value=34;]jest
 PASS   test4.spec.tsx
 PASS   test3.spec.ts
##vso[task.setprogress value=50;]jest
##vso[task.setprogress value=67;]jest
 PASS   test1.spec.ts
##vso[task.setprogress value=84;]jest
 PASS   test6.spec.tsx
##vso[task.setprogress value=99;]jest

Test Suites: 6 passed, 6 total
Tests:       18 passed, 18 total
Snapshots:   0 total
Time:        5.617 s
Ran all test suites.
✨  Done in 9.97s.

Keywords

FAQs

Last updated on 05 Jul 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc