How to use the @wdio/utils.runFnInFiberContext function in @wdio/utils

To help you get started, we’ve selected a few @wdio/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github oxygenhq / oxygen / src / runners / cucumber / index.js View on Github external
const userFn = async function (...args) {
            // step
            let result;
            let error;
            try {
                result = await runFnInFiberContext(code.bind(this, ...args))();
            } catch (err) {
                error = err;
            }
    
            if (error) {
                throw error;
            }
            return result;
        };
        return userFn;

@wdio/utils

A WDIO helper utility to provide several utility functions used across the project.

MIT
Latest version published 2 days ago

Package Health Score

94 / 100
Full package analysis