Testing
WebdriverIO with Mocha: Writing Your First Test Suite
WebdriverIO ships with Mocha as its default test framework, and the combination is a natural fit. Mocha's describe/it structure keeps tests readable, its hooks give you fine-grained control over setup and teardown, and its async support pairs cleanly with WebdriverIO's promise-based API. This guide covers