How to use the @pollyjs/node-server.Defaults.recordingsDir function in @pollyjs/node-server

To help you get started, we’ve selected a few @pollyjs/node-server 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 Netflix / pollyjs / packages / @pollyjs / ember / index.js View on Github external
let config = {
      enabled: env !== 'production',
      server: {}
    };

    let configPath = path.join(this.root, 'config', 'polly.js');

    if (fs.existsSync(configPath)) {
      let configGenerator = require(configPath);

      Object.assign(config, configGenerator(env));
    }

    config.server.recordingsDir = path.join(
      this.root,
      config.server.recordingsDir || Defaults.recordingsDir
    );

    return config;
  },

@pollyjs/node-server

Standalone node server and express integration for @pollyjs

Apache-2.0
Latest version published 1 year ago

Package Health Score

60 / 100
Full package analysis