diff options
Diffstat (limited to 'node_modules/ava/lib/test-worker.js')
-rw-r--r-- | node_modules/ava/lib/test-worker.js | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/node_modules/ava/lib/test-worker.js b/node_modules/ava/lib/test-worker.js index 0061775f0..84fba364e 100644 --- a/node_modules/ava/lib/test-worker.js +++ b/node_modules/ava/lib/test-worker.js @@ -2,7 +2,6 @@ // Check if the test is being run without AVA cli { - /* eslint-disable import/order */ const path = require('path'); const chalk = require('chalk'); @@ -17,22 +16,18 @@ } } +const currentlyUnhandled = require('currently-unhandled')(); +const isObj = require('is-obj'); + const adapter = require('./process-adapter'); const globals = require('./globals'); const opts = adapter.opts; globals.options = opts; -/* eslint-enable import/order */ -const Bluebird = require('bluebird'); -const currentlyUnhandled = require('currently-unhandled')(); -const isObj = require('is-obj'); const serializeError = require('./serialize-error'); -// Bluebird specific -Bluebird.longStackTraces(); - -(opts.require || []).forEach(require); +(opts.require || []).forEach(x => require(x)); adapter.installSourceMapSupport(); adapter.installPrecompilerHook(); |