UNPKG

testplane

Version:

Tests framework based on mocha and wdio

18 lines (17 loc) 891 B
/// <reference types="lodash" /> import type { NormalizedDependencies, SelectivityCompressionType } from "./types"; export declare class HashReader { private readonly _hashProvider; private readonly _selectivityHashesPath; private readonly _compresion; private _hashFileContents; constructor(selectivityRootPath: string, compression: SelectivityCompressionType); private _getHashFileContents; private _readHashForFile; private _readHashForModule; private _readHashForPattern; patternHasChanged(pattern: string): Promise<boolean>; /** @returns changed deps or null, if nothing changed */ getTestChangedDeps(testDeps: NormalizedDependencies): Promise<NormalizedDependencies | null>; } export declare const getHashReader: ((selectivityRootPath: string, compression: SelectivityCompressionType) => HashReader) & import("lodash").MemoizedFunction;