Sha256: cf5e8a3b71d4edf5469e1856e73b99b18d798dc2d23e1c97559d6bd6afc4fd2f

Contents?: true

Size: 1.43 KB

Versions: 6

Compression:

Stored size: 1.43 KB

Contents

/**
 * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
import type { AggregatedResult, TestCaseResult, TestResult } from '@jest/test-result';
import type { Config } from '@jest/types';
import type { ReporterOnStartOptions, Test } from './types';
declare type Cache = {
    content: string;
    clear: string;
};
/**
 * A class that generates the CLI status of currently running tests
 * and also provides an ANSI escape sequence to remove status lines
 * from the terminal.
 */
export default class Status {
    private _cache;
    private _callback?;
    private _currentTests;
    private _currentTestCases;
    private _done;
    private _emitScheduled;
    private _estimatedTime;
    private _interval?;
    private _aggregatedResults?;
    private _showStatus;
    constructor();
    onChange(callback: () => void): void;
    runStarted(aggregatedResults: AggregatedResult, options: ReporterOnStartOptions): void;
    runFinished(): void;
    addTestCaseResult(test: Test, testCaseResult: TestCaseResult): void;
    testStarted(testPath: Config.Path, config: Config.ProjectConfig): void;
    testFinished(_config: Config.ProjectConfig, testResult: TestResult, aggregatedResults: AggregatedResult): void;
    get(): Cache;
    private _emit;
    private _debouncedEmit;
    private _tick;
}
export {};

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-0.27.1 packages/webpacker/node_modules/@jest/reporters/build/Status.d.ts
decidim-0.26.4 packages/webpacker/node_modules/@jest/reporters/build/Status.d.ts
decidim-0.27.0 packages/webpacker/node_modules/@jest/reporters/build/Status.d.ts
decidim-0.26.3 packages/webpacker/node_modules/@jest/reporters/build/Status.d.ts
decidim-0.27.0.rc2 packages/webpacker/node_modules/@jest/reporters/build/Status.d.ts
decidim-0.27.0.rc1 packages/webpacker/node_modules/@jest/reporters/build/Status.d.ts