All files / core/blong-kopi/browser/orchestrator/component $subjectTestRun.ts

0% Statements 0/23
0% Branches 0/1
0% Functions 0/1
0% Lines 0/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 24                                               
import {handler} from '@feasibleone/blong';

/**
 * `$subject.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 `$subject` portal
 * does not link to it.
 */
export default handler(function $subjectTestRun() {
    return {
        '$subject.test.run': async () => ({
            title: 'Test runs',
            icon: 'pi pi-play',
            component: async () => {
                const {TestRun$SubjectPage} =
                    await import('../../../src/pages/$subjectTestRunPage.js');
                return TestRun$SubjectPage;
            },
        }),
    };
});