Skip to content

Commit

Permalink
feat: initial plugin skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
vobu committed Nov 30, 2021
0 parents commit ea30572
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Launcher from "./launcher"
import Service from "./service"

export default Service
export const launcher = Launcher
12 changes: 12 additions & 0 deletions src/launcher.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default class Launcher {
// If a hook returns a promise, WebdriverIO will wait until that promise is resolved to continue.
async onPrepare(config, capabilities) {
// TODO: something before all workers launch
}

onComplete(exitCode, config, capabilities) {
// TODO: something after the workers shutdown
}

// custom service methods ...
}

0 comments on commit ea30572

Please sign in to comment.