Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-jest-runner

Package Overview
Dependencies
Maintainers
8
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-jest-runner

A simple way of creating a Jest runner

  • 0.12.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
161K
decreased by-20.68%
Maintainers
8
Weekly downloads
 
Created

What is create-jest-runner?

The create-jest-runner package allows you to create custom Jest test runners. This can be useful for running tests in a specific way, adding custom logic before or after tests, or integrating with other tools.

What are create-jest-runner's main functionalities?

Creating a Custom Jest Runner

This feature allows you to create a custom Jest runner by using the `createJestRunner` function. You can specify the path to your custom runner logic.

const { createJestRunner } = require('create-jest-runner');

module.exports = createJestRunner(require.resolve('./my-runner'));

Custom Runner Logic

This code sample demonstrates how to implement custom runner logic. The custom runner can use Jest's `runCLI` function to execute tests and return the results.

const { runCLI } = require('jest');

module.exports = async ({ testPath }) => {
  const result = await runCLI({ testPath }, [process.cwd()]);
  return result;
};

Other packages similar to create-jest-runner

FAQs

Package last updated on 14 Sep 2022

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