Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const Bluebird = require('bluebird');
const Browser = require('../../src');
const Path = require('path');
const Replay = require('replay');
// Tests visit example.com, server is localhost port 3003
Browser.localhost('*.example.com', 3003);
// Redirect all HTTP requests to localhost
Replay.fixtures = Path.join(__dirname, '/../replay');
Replay.networkAccess = true;
Replay.localhost('*.example.com');
// Long stack traces when running this test suite
Bluebird.longStackTraces();
// We switch this directory to instrumented code when running code coverage
// report
const Replay = require('replay');
const Browser = require('../../src');
Browser.default.silent = true;
// Tests visit example.com, server is localhost port 3003
Browser.localhost('*.example.com', 3003);
// Redirect all HTTP requests to localhost
Replay.fixtures = __dirname + '/../replay';
Replay.networkAccess = true;
Replay.localhost('*.example.com');
module.exports = {
assert: require('assert'),
brains: require('./brains'),
Browser: Browser
};