jest-mock-external-components
Version:
Mock external React components with jest
11 lines (10 loc) • 328 B
TypeScript
import * as b from "@babel/core";
export interface State {
isTestLike: boolean;
mockedPaths: string[];
}
export interface Options {
mockExternalIdentifier?: string;
alwaysMockIdentifiers?: string[];
}
export default function plugin({ types: t, template: tmpl }: typeof b, options?: Options): b.PluginObj<State>;