gocodebox/lifterlms

View on GitHub
packages/llms-e2e-test-utils/src/create-user.js

Summary

Maintainability
A
1 hr
Test Coverage

Function createUser has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export async function createUser( opts = {} ) {
    await visitAdminPage( 'user-new.php' );

    const login = `mock_${ Math.random().toString( 36 ).slice( 2 ) }`;
    opts = Object.assign(
Severity: Minor
Found in packages/llms-e2e-test-utils/src/create-user.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status