Skip to content

Commit

Permalink
test_runner: move fakerTimers to mock module
Browse files Browse the repository at this point in the history
Signed-off-by: Erick Wendel <erick.workspace@gmail.com>
  • Loading branch information
ErickWendel committed May 1, 2023
1 parent 568ad96 commit 7a71461
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions lib/internal/test_runner/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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();
}
Expand Down

0 comments on commit 7a71461

Please sign in to comment.