Skip to content

Commit 8278fb7

Browse files
committed
fix: jest is peculiar about imports
1 parent 968452e commit 8278fb7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

electron/main/app.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Event, WebContentsWillNavigateEventParams } from 'electron';
22
import { BrowserWindow, app, shell } from 'electron';
3-
import path from 'node:path';
3+
import * as path from 'node:path';
44
import serve from 'electron-serve';
55
import { runInBackground } from '../common/async';
66
import type { IpcController } from './ipc';

electron/main/sge/sge.login.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import tls from 'node:tls';
1+
import * as tls from 'node:tls';
22
import { first, last, merge } from 'lodash';
33
import type { Maybe } from '../../common/types';
44
import { createLogger } from '../logger';

electron/main/tls/tls.utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import crypto from 'node:crypto';
2-
import tls from 'node:tls';
1+
import * as crypto from 'node:crypto';
2+
import * as tls from 'node:tls';
33
import { toUpperSnakeCase } from '../../common/string';
44
import type { Maybe } from '../../common/types';
55
import { createLogger } from '../logger';

0 commit comments

Comments
 (0)