-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwdio.conf.mts
More file actions
49 lines (44 loc) · 1.26 KB
/
Copy pathwdio.conf.mts
File metadata and controls
49 lines (44 loc) · 1.26 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
import * as path from 'path';
import * as fs from 'fs';
export const config: WebdriverIO.Config = {
runner: 'local',
framework: 'mocha',
specs: ['./test/specs/**/*.e2e.ts'],
maxInstances: 1,
capabilities: [
{
browserName: 'obsidian',
browserVersion: 'latest',
'wdio:obsidianOptions': {
installerVersion: 'earliest',
plugins: [
'.',
{ id: 'omnisearch', enabled: false },
{ id: 'obsidian-tasks-plugin', enabled: false },
{ id: 'dataview', enabled: false },
{ id: 'obsidian-meta-bind-plugin', enabled: false },
],
vault: 'test-vault',
},
},
],
services: ['obsidian'],
reporters: ['obsidian'],
cacheDir: path.resolve('.obsidian-cache'),
mochaOpts: {
ui: 'bdd',
timeout: 60000,
},
waitforInterval: 250,
waitforTimeout: 5000,
logLevel: 'warn',
injectGlobals: false,
onPrepare() {
const workspace = path.resolve('test-vault/.obsidian/workspace.json');
try {
fs.unlinkSync(workspace);
} catch {
/* may not exist */
}
},
};