defineWdioObsidianConfig
Builds the WebdriverIO configuration for end-to-end tests with wdio-obsidian-service, derived from the plugin’s layout: the production build in dist/build is the plugin under test, the demo vault (when there is one) is the vault, and the specs live in e2e/.
wdio.conf.mts:
import { defineWdioObsidianConfig } from '@mnaoumov/obsidian-dev-toolkit/test-runners/wdio-obsidian';
export const config: WebdriverIO.Config = defineWdioObsidianConfig({ appVersions: ['earliest', 'latest'] });Import:
import { defineWdioObsidianConfig } from '@mnaoumov/obsidian-dev-toolkit/test-runners/wdio-obsidian';Signature:
function defineWdioObsidianConfig(options: DefineWdioObsidianConfigOptions): WdioObsidianConfigParameters:
| Parameter | Type | Description |
|---|---|---|
options |
DefineWdioObsidianConfigOptions | The DefineWdioObsidianConfigOptions. |
Returns: WdioObsidianConfig — The configuration, to export as config.
Links to this page: