From c332d629b8c5366aa81a0ea413c49c7b838128cb Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 24 Jul 2021 09:15:12 -0700 Subject: [PATCH] [Refactor] remove use of legacy `exports` --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index fb2a8621..5e0f7dda 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,7 @@ var canExit = typeof process !== 'undefined' && process && typeof process.exit === 'function' ; -exports = module.exports = (function () { +module.exports = (function () { var wait = false; var harness; var lazyLoad = function () { @@ -115,10 +115,10 @@ function createExitHarness(conf, wait) { }; } -exports.createHarness = createHarness; -exports.Test = Test; -exports.test = exports; // tap compat -exports.test.skip = Test.skip; +module.exports.createHarness = createHarness; +module.exports.Test = Test; +module.exports.test = module.exports; // tap compat +module.exports.test.skip = Test.skip; function createHarness(conf_) { if (!conf_) conf_ = {};