Socket
Socket
Sign inDemoInstall

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 - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

4

build/createJestRunner.d.ts
import { CallbackTestRunner } from 'jest-runner';
import type { CreateRunnerOptions, Path } from './types';
export default function createRunner<ExtraOptionsType extends Record<string, unknown>>(runPath: Path, { getExtraOptions }?: CreateRunnerOptions<ExtraOptionsType>): typeof CallbackTestRunner;
import type { CreateRunnerOptions } from './types';
export default function createRunner<ExtraOptions extends Record<string, unknown>>(runPath: string, { getExtraOptions }?: CreateRunnerOptions<ExtraOptions>): typeof CallbackTestRunner;
import type { TestResult } from '@jest/test-result';
import type { Path } from './types';
export default function fail(options: {

@@ -8,3 +7,3 @@ start: number;

title: string;
path: Path;
path: string;
errorMessage: string;

@@ -18,5 +17,5 @@ };

title: string;
path: Path;
path: string;
};
errorMessage: string;
}): TestResult;

@@ -6,1 +6,2 @@ export { default as createJestRunner } from './createJestRunner';

export { default as todo } from './todo';
export type { RunTest, RunTestOptions } from './types';
import type { TestResult } from '@jest/test-result';
import type { Milliseconds } from './types';
interface Options {

@@ -15,3 +14,3 @@ stats: {

tests: Array<{
duration?: Milliseconds | null;
duration?: number | null;
errorMessage?: string;

@@ -18,0 +17,0 @@ testPath?: string;

@@ -1,10 +0,18 @@

import type { TestResult as JestTestResult } from '@jest/types';
export declare type Milliseconds = JestTestResult.Milliseconds;
export declare type Path = string;
import type { TestContext, TestResult } from '@jest/test-result';
import type { Config, TestRunnerOptions } from 'jest-runner';
export interface CreateRunnerOptions<ExtraOptions extends Record<string, unknown>> {
getExtraOptions?: () => ExtraOptions;
}
export declare type RunTestOptions<ExtraOptions extends Record<string, unknown> = Record<string, unknown>> = {
config: Config.ProjectConfig;
extraOptions: ExtraOptions;
globalConfig: Config.GlobalConfig;
rawModuleMap: ReturnType<TestContext['moduleMap']['getRawModuleMap']> | null;
options: TestRunnerOptions;
testPath: string;
};
export declare type RunTest<ExtraOptions extends Record<string, unknown> = Record<string, unknown>> = (options: RunTestOptions<ExtraOptions>) => TestResult | Promise<TestResult>;
export interface TestDetail {
title: string;
path: Path;
path: string;
}
export interface CreateRunnerOptions<ExtraOptionsType extends Record<string, unknown>> {
getExtraOptions?: () => ExtraOptionsType;
}
{
"name": "create-jest-runner",
"version": "0.11.0",
"version": "0.11.1",
"main": "build/index.js",

@@ -30,3 +30,3 @@ "types": "build/index.d.ts",

"build-types": "tsc",
"prepare": "yarn build"
"prepare": "yarn build && yarn build-types"
},

@@ -80,3 +80,3 @@ "dependencies": {

},
"packageManager": "yarn@3.2.0"
"packageManager": "yarn@3.2.1"
}
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