diff --git a/src/main/MainRunner.ts b/src/main/MainRunner.ts index 0d3e9f4..bac6aba 100644 --- a/src/main/MainRunner.ts +++ b/src/main/MainRunner.ts @@ -6,7 +6,7 @@ import { } from 'electron' import Constants, { TrayOptions } from './utils/Constants' import IPCs from './IPCs' -import { createTray, hideWindow, showWindow } from './tray.ts' +import { createTray, hideWindow, showWindow } from './tray' const options = { width: Constants.IS_DEV_ENV ? 1500 : 1200, diff --git a/src/main/tray.ts b/src/main/tray.ts index 52f0eca..9ced3d3 100644 --- a/src/main/tray.ts +++ b/src/main/tray.ts @@ -1,6 +1,6 @@ import { app, screen, Menu, Tray, BrowserWindow } from 'electron' -import Constants from './utils/Constants.ts' -import { debounce } from './utils/Util.ts' +import Constants from './utils/Constants' +import { debounce } from './utils/Util' let tray let trayOptions diff --git a/src/renderer/index.html b/src/renderer/index.html index ca44a74..22244c3 100644 --- a/src/renderer/index.html +++ b/src/renderer/index.html @@ -6,5 +6,5 @@
- + diff --git a/tests/fixtures.mts b/tests/fixtures.mts index 79343d7..80adc04 100644 --- a/tests/fixtures.mts +++ b/tests/fixtures.mts @@ -64,6 +64,7 @@ export const test = base.test.extend({ page: async ({}, use) => { await use(page) }, + // @ts-ignore util: async ({ page }, use, testInfo) => { await use(new TestUtil(page, testInfo, __testScreenshotPath)) } diff --git a/tests/specs/app.spec.ts b/tests/specs/app.spec.ts index cfc00f8..8147621 100644 --- a/tests/specs/app.spec.ts +++ b/tests/specs/app.spec.ts @@ -1,8 +1,9 @@ -import { test, expect, beforeAll, afterAll } from '../fixtures.mts' +import { test, expect, beforeAll, afterAll } from '../fixtures.mjs' test.beforeAll(beforeAll) test.afterAll(afterAll) +// @ts-ignore test('Document element check', async ({ page, util }) => { try { await expect( @@ -20,6 +21,7 @@ test('Document element check', async ({ page, util }) => { } }) +// @ts-ignore test('Counter button click check', async ({ page, util }) => { try { await page.getByTestId('btn-counter').click({ clickCount: 10, delay: 50 }) diff --git a/tsconfig.json b/tsconfig.json index b352a80..f5930c2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,8 +3,8 @@ "baseUrl": "./", "outDir": "./dist", "target": "esnext", - "module": "nodenext", - "moduleResolution": "nodenext", + "module": "Preserve", + "moduleDetection": "force", "jsx": "preserve", "noImplicitAny": false, "allowSyntheticDefaultImports": true, diff --git a/tsconfig.node.json b/tsconfig.node.json index d6c4a70..e519ecd 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -1,14 +1,13 @@ { "compilerOptions": { "target": "esnext", - "module": "esnext", + "module": "Preserve", + "moduleDetection": "force", "jsx": "preserve", - "moduleResolution": "nodenext", "composite": true, "resolveJsonModule": true, "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "allowImportingTsExtensions": true + "allowSyntheticDefaultImports": true }, "include": [ "src/main",