Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const test = async function() {
console.log('Starting Geckodriver...');
geckodriver.start();
console.log('Running functional tests...');
try {
childProcess.execFileSync(
'poetry', ['run', 'pytest'],
{cwd: FUNC_TEST_PATH, stdio: 'inherit'},
);
} finally {
console.log('Stopping Geckodriver...');
geckodriver.stop();
}
};
return () => geckodriver.stop();
default: