From 5ee9dfc88282c79252e1aad0a34b4c671bdb8cb5 Mon Sep 17 00:00:00 2001 From: swyx Date: Fri, 13 Dec 2019 14:58:37 -0500 Subject: [PATCH] default jest to watch mode when not in CI (#366) fixes https://github.com/jaredpalmer/tsdx/issues/319 --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.ts b/src/index.ts index ac1122c0f..7bf8b6834 100755 --- a/src/index.ts +++ b/src/index.ts @@ -576,6 +576,10 @@ prog ...jestConfig, }) ); + + if (!process.env.CI) { + argv.push('--watch') // run jest in watch mode unless in CI + } const [, ...argsToPassToJestCli] = argv; jest.run(argsToPassToJestCli);