add checkout config to recorder (#36)

* add checkout config to recorder

* add test cases for checkout feature and extract assertSnapshot method
This commit is contained in:
yz-yu
2019-01-11 10:52:04 +08:00
committed by GitHub
parent b45655ea3a
commit cedc87c69e
9 changed files with 738 additions and 314 deletions

View File

@@ -99,7 +99,9 @@ export type eventWithTime = event & {
};
export type recordOptions = {
emit?: (e: eventWithTime) => void;
emit?: (e: eventWithTime, isCheckout?: boolean) => void;
checkoutEveryNth?: number;
checkoutEveryNms?: number;
};
export type observerParam = {