html-reporter
Version:
Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.
16 lines (15 loc) • 632 B
TypeScript
import { State } from "../../new-ui/types/store";
import { DeepPartial } from 'redux';
/**
* Create new state from old state and diff object
*/
export declare const applyStateUpdate: (state: State, diff: DeepPartial<State>) => State;
/**
* Ensure diff has an object by given path
* Usually it is being used to pass nested diff property to a helper function
*/
export declare function ensureDiffProperty(diff: object, path: string[]): void;
/**
* @returns Result of _.get(diff, path) if it exists, _.get(state, path) otherwise
*/
export declare function getUpdatedProperty(state: State, diff: State, path: string[]): unknown;