diff --git a/src/keploy.ts b/src/keploy.ts index 1de2cca..d69c201 100644 --- a/src/keploy.ts +++ b/src/keploy.ts @@ -29,6 +29,8 @@ export const V1_BETA2 = "api.keploy.io/v1beta2", type AppConfigFilter = { urlRegex?: string; + remove?: string[]; + replace?: { [key: string]: string }; }; type AppConfig = { @@ -163,6 +165,8 @@ export default class Keploy { } capture(req: TestCaseReq) { + req.Remove=this.appConfig.filter.remove + req.Replace=this.appConfig.filter.replace return this.put(req); }