-
-
Notifications
You must be signed in to change notification settings - Fork 301
Expand file tree
/
Copy pathwdio.conf.mts
More file actions
37 lines (34 loc) · 990 Bytes
/
wdio.conf.mts
File metadata and controls
37 lines (34 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import * as path from "path";
import { env } from "process";
import { parseObsidianVersions } from "wdio-obsidian-service";
const cacheDir = path.resolve(".obsidian-cache");
const desktopVersions = await parseObsidianVersions(
env.OBSIDIAN_VERSIONS ?? "latest/latest",
{ cacheDir },
);
export const config: WebdriverIO.Config = {
runner: "local",
framework: "mocha",
specs: ["./test/specs/**/*.e2e.ts"],
maxInstances: 1,
capabilities: desktopVersions.map<WebdriverIO.Capabilities>(
([appVersion, installerVersion]) => ({
browserName: "obsidian",
"wdio:obsidianOptions": {
appVersion,
installerVersion,
plugins: ["."],
vault: "test/vault",
},
}),
),
services: ["obsidian"],
reporters: ["obsidian"],
cacheDir,
mochaOpts: {
ui: "bdd",
timeout: 60000,
},
logLevel: "warn",
waitforTimeout: 10000,
};