mirror of
https://github.com/gavvvr/obsidian-timecodes-plugin.git
synced 2026-07-22 05:38:08 +00:00
chore(e2e): extract variable with a list of WDIO reporters
This commit is contained in:
parent
0c5a41e14a
commit
a2f1687234
2 changed files with 6 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/// <reference types="wdio-electron-service" />
|
||||
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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue