Skip to content

Commit

Permalink
fix wdio config types
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-lebeau committed Sep 2, 2024
1 parent 9b120ad commit 512e678
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
13 changes: 4 additions & 9 deletions test/e2e/wdio.base.conf.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path'
import { unlinkSync, mkdirSync } from 'fs'
import type { Options, Reporters } from '@wdio/types'
import type { Reporters } from '@wdio/types'
import { browser, $, $$ } from '@wdio/globals'
import { getRunId, getTestReportDirectory } from '../envUtils'
import { APPLICATION_ID } from './lib/helpers/configuration'
Expand All @@ -25,15 +25,10 @@ if (testReportDirectory) {
logsPath = 'specs.log'
}

type OptionsWithLogsPath = Options.Testrunner & { logsPath?: string }
export const config: OptionsWithLogsPath = {
type ConfigWithLogsPath = WebdriverIO.Config & { logsPath?: string }
export const config: ConfigWithLogsPath = {
runner: 'local',
autoCompileOpts: {
autoCompile: true,
tsNodeOpts: {
project: './tsconfig.json',
},
},
tsConfigPath: './tsconfig.json',
// We do not inject @wdio globals to keep Jasmine's expect
injectGlobals: false,
specs: ['./scenario/**/*.scenario.ts'],
Expand Down
3 changes: 1 addition & 2 deletions test/e2e/wdio.local.conf.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { Options } from '@wdio/types'
import { config as baseConfig } from './wdio.base.conf'

export const config: Options.Testrunner = {
export const config: WebdriverIO.Config = {
...baseConfig,

capabilities: [
Expand Down

0 comments on commit 512e678

Please sign in to comment.