yousafn
2024-03-13 16:56
this works for me in a quick test :)
``` const emptyConsole = () => {
const emptyFunction = () => {};
const emptyConsole = {
log: emptyFunction,
debug: emptyFunction,
info: emptyFunction,
warn: emptyFunction,
error: emptyFunction,
group: emptyFunction,
groupCollapsed: emptyFunction,
groupEnd: emptyFunction,
};
return emptyConsole;
};```
```const mswPact = setupPactMswAdapter({
server,
options: {
logger: emptyConsole(),
consumer: "shop-ui",
providers: {
[process.env.PACT_PROVIDER ? process.env.PACT_PROVIDER : "shop"]: ["wallet"],
},
pactOutDir: "./pacts",
},```