Qualify CJS-only module imports

This commit is contained in:
Fedor Indutny
2025-09-19 13:05:51 -07:00
committed by GitHub
parent 140241b83f
commit 40eaf078cc
401 changed files with 1278 additions and 593 deletions

View File

@@ -9,11 +9,7 @@ import { MINUTE } from '../../util/durations/index.js';
import type { SystemTrayServiceOptionsType } from '../../../app/SystemTrayService.js';
import { SystemTrayService } from '../../../app/SystemTrayService.js';
import { setupI18n } from '../../util/setupI18n.js';
import enMessages from '../../../_locales/en/messages.json';
const i18n = setupI18n('en', enMessages);
import i18n from '../util/i18n.js';
describe('SystemTrayService', function (this: Mocha.Suite) {
// These tests take more time on CI in some cases, so we increase the timeout.

View File

@@ -4,7 +4,7 @@
import * as path from 'node:path';
import { tmpdir } from 'node:os';
import { chmodSync, rmSync, writeFileSync, mkdtempSync } from 'node:fs';
import { pathExists, readJsonSync } from 'fs-extra';
import fsExtra from 'fs-extra';
import { v4 as generateGuid } from 'uuid';
import { assert } from 'chai';
@@ -12,6 +12,8 @@ import { assert } from 'chai';
import type { ConfigType } from '../../../app/base_config.js';
import { start } from '../../../app/base_config.js';
const { pathExists, readJsonSync } = fsExtra;
describe('base_config', () => {
let targetDir: string;
let targetPath: string;