Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

Commit

Permalink
Merge pull request #65 from zapier/better-testing-awareness
Browse files Browse the repository at this point in the history
Support test frameworks other than mocha
  • Loading branch information
xavdid authored Feb 21, 2018
2 parents 2615bea + 46c5c5b commit de2049b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
'use strict';

const _process_args = process.argv.join(' ');
const IS_TESTING = _process_args.indexOf('mocha') > 0;
const IS_TESTING =
_process_args.indexOf('mocha') > 0 ||
_process_args.indexOf('jest') > 0 ||
(process.env.NODE_ENV || '').startsWith('test');

const KILL_MIN_LIMIT = 250;
const KILL_MAX_LIMIT = 450 * 1000 * 1000;
Expand Down

0 comments on commit de2049b

Please sign in to comment.