All files / realm/blong-gateway/browser/orchestrator/component gatewayTestRun.ts

47.82% Statements 11/23
100% Branches 0/0
0% Functions 0/1
47.82% Lines 11/23

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 241x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x                          
import {handler} from '@feasibleone/blong';
 
/**
 * `gateway.test.run` — the Test runs page.
 *
 * The page lazy-loads from `src/pages/` so the Node tap runner can load this
 * handler without resolving `.tsx`. The menu item is declared only in the
 * `test-ui` config block of `index.browser.ts`, so a normal `gateway` portal
 * does not link to it.
 */
export default handler(function gatewayTestRun() {
    return {
        'gateway.test.run': async () => ({
            title: 'Test runs',
            icon: 'pi pi-play',
            component: async () => {
                const {TestRunGatewayPage} =
                    await import('../../../src/pages/gatewayTestRunPage.js');
                return TestRunGatewayPage;
            },
        }),
    };
});