How to use the testcafe-legacy-api.CLIENT_RUNNER_SCRIPT function in testcafe-legacy-api

To help you get started, we’ve selected a few testcafe-legacy-api 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 DevExpress / testcafe / src / load-assets.js View on Github external
export default function (developmentMode) {
    const scriptNameSuffix = developmentMode ? 'js' : 'min.js';

    return {
        favIcon:      loadAsset('./client/ui/favicon.ico', true),
        coreScript:   loadAsset(`./client/core/index.${scriptNameSuffix}`),
        driverScript: loadAsset(`./client/driver/index.${scriptNameSuffix}`),
        uiScript:     loadAsset(`./client/ui/index.${scriptNameSuffix}`),
        uiStyle:      loadAsset('./client/ui/styles.css'),
        uiSprite:     loadAsset('./client/ui/sprite.png', true),
        uiSpriteSvg:  loadAsset('./client/ui/sprite.svg', true),

        automationScript: loadAsset(`./client/automation/index.${scriptNameSuffix}`),

        // NOTE: Load the legacy client script lazily to reduce startup time
        legacyRunnerScript: require('testcafe-legacy-api').CLIENT_RUNNER_SCRIPT
    };
}

testcafe-legacy-api

Legacy API support for TestCafe

MIT
Latest version published 1 day ago

Package Health Score

78 / 100
Full package analysis

Popular testcafe-legacy-api functions