Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onPrepare() {
afterEachAllRewrite();
beforeEachAllRewrite();
afterAllRewrite();
beforeAllRewrite();
retry.onPrepare();
jasmine.DEFAULT_TIMEOUT_INTERVAL = TIMEOUT;
require('ts-node').register({
project: 'e2e/tsconfig.e2e.json'
});
require("tsconfig-paths").register({
project: 'e2e/tsconfig.e2e.json',
baseUrl: 'e2e/',
paths: tsConfig.compilerOptions.paths
});
browser.manage().window().setSize(width, height);
jasmine.getEnv().addReporter(
function onPrepare() {
if (process.env.CI) {
retry.onPrepare();
SmartRunner.apply({
outputDirectory: process.env.COMMUNITY_SMARTRUNNER_DIR || './.protractor-smartrunner',
repoHash: process.env.GIT_HASH
});
}
require('ts-node').register({ project: './e2e/tsconfig.e2e.json' });
require('tsconfig-paths').register({baseUrl: './e2e', paths: configTs.compilerOptions.paths});
fs.ensureDirSync(config.paths.tmp);
browser.manage().window().setSize(config.browserWidth, config.browserHeight);
browser.waitForAngularEnabled(false);
var generatedSuiteName = Math.random().toString(36).substr(2, 5);