@tapjs/reporter
Version:
Pretty test output reporters for tap
13 lines • 588 B
JavaScript
import { Box } from 'ink';
import React from 'react';
import { useSubtests } from './hooks/use-subtests.js';
import { TestSummary } from './test-summary.js';
// show the tests currently running
export const Runs = ({ test }) => {
const t = useSubtests(test, 'active');
return !t.length ?
React.createElement(React.Fragment, null)
: React.createElement(Box, { flexDirection: "column", marginTop: 1 }, t.map(test => (React.createElement(Box, { key: test.childId },
React.createElement(TestSummary, { test: test })))));
};
//# sourceMappingURL=runs.js.map