UNPKG

wdio-mocha-framework

Version:

A WebdriverIO plugin. Adapter for Mocha testing framework.

13 lines (10 loc) 257 B
import path from 'path' let { context, file } = module.parent.context let { it } = context context.it = function (name, callback) { if (name && callback) { return it(...arguments) } else { name = path.basename(file, '.js') } }