refactor: Use node protocol when importing builtins

This commit is contained in:
Joachim Van Herwegen
2023-10-30 15:53:29 +01:00
parent def0b5c732
commit 990184dbb5
127 changed files with 170 additions and 172 deletions

View File

@@ -1,12 +1,12 @@
import type { Server } from 'http';
import { Server as HttpsServer } from 'https';
import type { Server } from 'node:http';
import { Server as HttpsServer } from 'node:https';
import { ServerInitializer } from '../../../src/init/ServerInitializer';
import type { Logger } from '../../../src/logging/Logger';
import { getLoggerFor } from '../../../src/logging/LogUtil';
import type { HttpServerFactory } from '../../../src/server/HttpServerFactory';
// Mock so we don't create an actual HTTPS server in the test below
jest.mock('https');
jest.mock('node:https');
jest.mock('../../../src/logging/LogUtil');
describe('ServerInitializer', (): void => {