How to use the replay.passThrough function in replay

To help you get started, we’ve selected a few replay examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github elifesciences / elife-xpub / test / helpers / replay-setup.js View on Github external
module.exports = subFolder => {
  Replay.fixtures = path.join(__dirname, '..', 'http-mocks', subFolder)
  Replay.headers = [/^accept/, /^body/, /^content-type/, /^host/, /^if-/, /^x-/]
  Replay.passThrough('app')
}

replay

When API testing slows you down: record and replay HTTP responses like a boss

MIT
Latest version published 6 years ago

Package Health Score

56 / 100
Full package analysis