Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Kefir.stream(emitter => {
process.env.NODE_ENV = 'test';
process.env.BABEL_ENV = 'test';
emitter.value(actions.testRun.request());
jest.runCLI(buildArgv(argv), projects).then(({ results }) => {
if (results.success) {
emitter.value(actions.testRun.success());
} else {
emitter.value(actions.testRun.failure());
}
emitter.value(actions.shutdown.request());
});
})
)