import url from 'node:url'
import path from 'node:path'
const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
export const config: WebdriverIO.Config = {
* specify test files
*/
specs: [
'./mocha.test.ts'
],
* capabilities
*/
capabilities: [{
browserName: 'chrome'
}],
* test configurations
*/
logLevel: 'trace',
framework: 'mocha',
outputDir: path.resolve(__dirname, 'logs'),
reporters: ['spec', 'dot', 'junit'],
mochaOpts: {
ui: 'bdd',
timeout: 15000
},
* hooks
*/
onPrepare: function() {
console.log('let\'s go')
},
onComplete: function() {
console.log('that\'s it')
}
}