How to use the replay.headers 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-/]


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

Latest version published 5 years ago

Package Health Score

56 / 100
Full package analysis