From b615262f36f32d3ff0d1cdda7ef2093f70ef4d41 Mon Sep 17 00:00:00 2001 From: swyx Date: Wed, 11 Dec 2019 04:53:17 -0500 Subject: [PATCH] default jest to watch mode when not in CI 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);