Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
after(() => {
log.setLevel(log.LEVELS.ERROR);
process.on('uncaughtException', mochaListener);
});
after(() => {
log.setLevel(logLevel);
});
after(() => {
log.setLevel(logLevel);
});
after(() => {
log.setLevel(logLevel);
process.env[ENV_VARS.HEADLESS] = prevEnvHeadless;
});
before(() => {
logLevel = log.getLevel();
log.setLevel(log.LEVELS.OFF);
process.env.APIFY_LOCAL_STORAGE_DIR = LOCAL_STORAGE_DIR;
emptyLocalStorageSubdir('key_value_stores/default');
});