Skip to content

Commit

Permalink
default jest to watch mode when not in CI (#366)
Browse files Browse the repository at this point in the history
fixes #319
  • Loading branch information
swyxio authored and jaredpalmer committed Dec 13, 2019
1 parent e8be03c commit 5ee9dfc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5ee9dfc

Please sign in to comment.