UNPKG

@tapjs/reporter

Version:
13 lines 508 B
import { Box, Text } from 'ink'; import React from 'react'; import { useTimedOut } from './hooks/use-timed-out.js'; export const TimedOut = ({ test }) => { const timedOut = useTimedOut(test); return timedOut ? React.createElement(Box, null, React.createElement(Text, { color: "red", bold: true }, "Timed out", timedOut.signal && ` (${timedOut.signal})`)) : React.createElement(React.Fragment, null); }; //# sourceMappingURL=timed-out.js.map