diff --git a/lib/internal/test_runner/fake_timers.js b/lib/internal/test_runner/mock/fake_timers.js similarity index 100% rename from lib/internal/test_runner/fake_timers.js rename to lib/internal/test_runner/mock/fake_timers.js diff --git a/lib/internal/test_runner/mock.js b/lib/internal/test_runner/mock/mock.js similarity index 100% rename from lib/internal/test_runner/mock.js rename to lib/internal/test_runner/mock/mock.js diff --git a/lib/internal/test_runner/test.js b/lib/internal/test_runner/test.js index 52c77b94d92279..aee5c517c9dccb 100644 --- a/lib/internal/test_runner/test.js +++ b/lib/internal/test_runner/test.js @@ -30,8 +30,8 @@ const { }, AbortError, } = require('internal/errors'); -const { MockTracker } = require('internal/test_runner/mock'); -const { FakeTimers } = require('internal/test_runner/fake_timers'); +const { MockTracker } = require('internal/test_runner/mock/mock'); +const { FakeTimers } = require('internal/test_runner/mock/fake_timers'); const { TestsStream } = require('internal/test_runner/tests_stream'); const { createDeferredCallback, diff --git a/lib/test.js b/lib/test.js index faa743241da6f7..f9f6bcf8bd0821 100644 --- a/lib/test.js +++ b/lib/test.js @@ -23,7 +23,7 @@ ObjectDefineProperty(module.exports, 'mock', { enumerable: true, get() { if (lazyMock === undefined) { - const { MockTracker } = require('internal/test_runner/mock'); + const { MockTracker } = require('internal/test_runner/mock/mock'); lazyMock = new MockTracker(); } @@ -40,7 +40,7 @@ ObjectDefineProperty(module.exports, 'fakeTimers', { enumerable: true, get() { if (lazyFakeTimers === undefined) { - const { FakeTimers } = require('internal/test_runner/fake_timers'); + const { FakeTimers } = require('internal/test_runner/mock/fake_timers'); lazyFakeTimers = new FakeTimers(); }