Skip to content

Commit

Permalink
[Refactor] remove use of legacy exports
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 24, 2021
1 parent b36f816 commit a04439c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions index.js
Expand Up @@ -11,7 +11,8 @@ 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 () {
return getHarness().apply(this, arguments);
Expand Down Expand Up @@ -90,10 +91,10 @@ function createExitHarness(conf) {
return harness;
}

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_ = {};
Expand Down

0 comments on commit a04439c

Please sign in to comment.