jest-message-util
- Version 29.7.0
- Published
- 20.6 kB
- 9 dependencies
- MIT license
Install
npm i jest-message-util
yarn add jest-message-util
pnpm add jest-message-util
Overview
Overview not available.
Index
Functions
function formatExecError
formatExecError: ( error: Error | TestResult.SerializableError | string | number | undefined, config: StackTraceConfig, options: StackTraceOptions, testPath?: string, reuseMessage?: boolean, noTitle?: boolean) => string;
function formatPath
formatPath: ( line: string, config: StackTraceConfig, relativeTestPath?: string | null) => string;
function formatResultsErrors
formatResultsErrors: ( testResults: Array<TestResult.AssertionResult>, config: StackTraceConfig, options: StackTraceOptions, testPath?: string) => string | null;
function formatStackTrace
formatStackTrace: ( stack: string, config: StackTraceConfig, options: StackTraceOptions, testPath?: string) => string;
function getStackTraceLines
getStackTraceLines: ( stack: string, options?: StackTraceOptions) => Array<string>;
function getTopFrame
getTopFrame: (lines: Array<string>) => Frame | null;
function indentAllLines
indentAllLines: (lines: string) => string;
function separateMessageFromStack
separateMessageFromStack: (content: string) => { message: string; stack: string;};
Interfaces
Type Aliases
type StackTraceConfig
type StackTraceConfig = Pick<Config.ProjectConfig, 'rootDir' | 'testMatch'>;
type StackTraceOptions
type StackTraceOptions = { noStackTrace: boolean; noCodeFrame?: boolean;};
Package Files (1)
Dependencies (9)
Dev Dependencies (4)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/jest-message-util
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/jest-message-util)
- HTML<a href="https://www.jsdocs.io/package/jest-message-util"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2279 ms. - Missing or incorrect documentation? Open an issue for this package.