My app sets a non-deterministic request id which the response has to match so I need to update the tape to include the request id.
Can we add a new option that allows the outbound tape response to be edited bodyUpdater.
const opts = {
host: "http://localhost:9001",
port: 9000,
bodyMatcher: (tape, req) => { /** stripe out request id */},
bodyUpdater: (tape, req) => { /** get new request id from req and replace old request id instances from the tape */}
}
My app sets a non-deterministic request id which the response has to match so I need to update the tape to include the request id.
Can we add a new option that allows the outbound tape response to be edited
bodyUpdater
.