-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwdio.conf.js
36 lines (31 loc) · 817 Bytes
/
wdio.conf.js
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
const path = require('node:path');
const fs = require('node:fs');
const packageJson = JSON.parse(fs.readFileSync(path.join(__dirname, 'package.json'), { encoding: 'utf-8' }));
globalThis.packageJson = packageJson;
process.env.TEST = 'true';
const config = {
services: ['electron'],
capabilities: [
{
'browserName': 'electron',
'wdio:electronServiceOptions': {
appArgs: ['foo', 'bar=baz'],
restoreMocks: true,
},
},
],
waitforTimeout: 5000,
connectionRetryCount: 10,
connectionRetryTimeout: 30000,
logLevel: 'debug',
runner: 'local',
outputDir: 'wdio-logs',
specs: ['./test/*.spec.ts'],
tsConfigPath: path.join(__dirname, 'tsconfig.json'),
framework: 'mocha',
mochaOpts: {
ui: 'bdd',
timeout: 30000,
},
};
module.exports = { config };