diff --git a/lib/internal/test_runner/coverage.js b/lib/internal/test_runner/coverage.js index 68ee42c3746353..7727ab006052ba 100644 --- a/lib/internal/test_runner/coverage.js +++ b/lib/internal/test_runner/coverage.js @@ -25,7 +25,7 @@ const { const { setupCoverageHooks } = require('internal/util'); const { tmpdir } = require('os'); const { join, resolve } = require('path'); -const { fileURLToPath } = require('url'); +const { fileURLToPath } = require('internal/url'); const kCoverageFileRegex = /^coverage-(\d+)-(\d{13})-(\d+)\.json$/; const kIgnoreRegex = /\/\* node:coverage ignore next (?\d+ )?\*\//; const kLineEndingRegex = /\r?\n$/u; diff --git a/lib/internal/watch_mode/files_watcher.js b/lib/internal/watch_mode/files_watcher.js index b38f94d7cc8051..895c6ec138d131 100644 --- a/lib/internal/watch_mode/files_watcher.js +++ b/lib/internal/watch_mode/files_watcher.js @@ -14,7 +14,7 @@ const { TIMEOUT_MAX } = require('internal/timers'); const EventEmitter = require('events'); const { watch } = require('fs'); -const { fileURLToPath } = require('url'); +const { fileURLToPath } = require('internal/url'); const { resolve, dirname } = require('path'); const { setTimeout } = require('timers');