From 7a714615857972733ef851993aff13399e8505e3 Mon Sep 17 00:00:00 2001 From: Erick Wendel Date: Mon, 1 May 2023 13:53:18 -0300 Subject: [PATCH] test_runner: move fakerTimers to mock module Signed-off-by: Erick Wendel --- lib/internal/test_runner/{ => mock}/fake_timers.js | 0 lib/internal/test_runner/{ => mock}/mock.js | 0 lib/internal/test_runner/test.js | 4 ++-- lib/test.js | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) rename lib/internal/test_runner/{ => mock}/fake_timers.js (100%) rename lib/internal/test_runner/{ => mock}/mock.js (100%) 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(); }