strong-mock
Version:
Type safe mocking library for TypeScript
17 lines (16 loc) • 773 B
TypeScript
import type { ExpectationRepository } from '../expectation/repository/expectation-repository';
import type { ExpectationBuilder } from '../when/expectation-builder';
import type { StrongMockDefaults } from './defaults';
import type { Mock } from './mock';
export declare const setActiveMock: (mock: Mock<any>) => void;
export declare const clearActiveMock: () => void;
export declare const getActiveMock: () => Mock<any>;
type MockState = {
repository: ExpectationRepository;
builder: ExpectationBuilder;
options: StrongMockDefaults;
};
export declare const getMockState: (mock: Mock<any>) => MockState;
export declare const setMockState: (mock: Mock<any>, state: MockState) => void;
export declare const getAllMocks: () => [Mock<any>, MockState][];
export {};