From a2f16872341f1e7cdfeb390911cc878c12495fc3 Mon Sep 17 00:00:00 2001 From: Kirill Gavrilov Date: Tue, 21 Oct 2025 12:39:22 +0300 Subject: [PATCH] chore(e2e): extract variable with a list of WDIO reporters --- e2e/package.json | 1 + e2e/wdio.conf.ts | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/e2e/package.json b/e2e/package.json index ff3c69f..ca477a6 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -16,6 +16,7 @@ "@wdio/local-runner": "9.20.0", "@wdio/mocha-framework": "9.20.0", "@wdio/spec-reporter": "9.20.0", + "@wdio/types": "9.20.0", "electron": "37.6.0", "expect-webdriverio": "5.4.3", "istanbul-lib-coverage": "3.2.2", diff --git a/e2e/wdio.conf.ts b/e2e/wdio.conf.ts index b6d70e3..988a1d6 100644 --- a/e2e/wdio.conf.ts +++ b/e2e/wdio.conf.ts @@ -1,4 +1,6 @@ /// +import { type Reporters as WdioReporters } from '@wdio/types' + import ObsidianApp from './specs/pageobjects/obsidian-app.page' import { exportCoverageToLcov } from './utils/coverage' @@ -8,6 +10,8 @@ const ONE_DAY = 24 * 60 * 60 * 1000 const obsidianBinaryPath = process.env.OBSIDIAN_BINARY_PATH const obsidianNoSandbox = process.env.OBSIDIAN_NO_SANDBOX === 'true' +const wdioReporters: WdioReporters.ReporterEntry[] = ['spec'] + export const config: WebdriverIO.Config = { runner: 'local', specs: ['./specs/*.e2e.ts'], @@ -31,7 +35,7 @@ export const config: WebdriverIO.Config = { services: ['electron'], framework: 'mocha', - reporters: ['spec'], + reporters: wdioReporters, mochaOpts: { ui: 'bdd', timeout: debug ? ONE_DAY : 60000,