Skip to content

Commit a480bb7

Browse files
committed
chore: update log message
1 parent 8cee22e commit a480bb7

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

e2e/tests/basic.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,16 @@ describe(`VS Code Extension Testing with ${targetFramework}`, function () {
9090
if (process.env.VSCODE_WDIO_SMOKE_RETRO_WIN === 'yes') {
9191

9292
it('should use temporally configuration file', async function () {
93-
await expect(workbench).hasExpectedLog('Use temporary configuration files @wdio/[email protected] < 9.16.0')
93+
await expect(workbench).hasExpectedLog(
94+
'Use temporary configuration files to run WDIO: @wdio/[email protected] < 9.16.0'
95+
)
9496
})
9597

9698
// eslint-disable-next-line mocha/no-setup-in-describe
9799
} else if (process.env.VSCODE_WDIO_SMOKE_RETRO_WIN === 'no') {
98100

99101
it('should not use temporally configuration file', async function () {
100-
await expect(workbench).not.hasExpectedLog('Use temporary configuration files @wdio/utils@9.15.0 < 9.16.0')
102+
await expect(workbench).hasExpectedLog(/Use cli argument to run WDIO: @wdio\/utils/)
101103
})
102104
}
103105
})

packages/vscode-wdio-worker/src/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ export async function isFixedWdio(this: WorkerMetaContext, configPath: string) {
4545
const versions = pkg.version.split('.')
4646

4747
if (Number(versions[0]) >= 10 || (Number(versions[0]) >= 9 && Number(versions[1]) >= 16)) {
48+
this.log.debug(`Use cli argument to run WDIO: ${pkgName}@${pkg.version} >= 9.16.0`)
4849
return true
4950
}
50-
this.log.debug(`Use temporary configuration files ${pkgName}@${pkg.version} < 9.16.0`)
51+
this.log.debug(`Use temporary configuration files to run WDIO: ${pkgName}@${pkg.version} < 9.16.0`)
5152
return false
5253
} catch (error) {
5354
const msg = error instanceof Error ? error.message : String(error)

0 commit comments

Comments
 (0)