UNPKG

@tapjs/reporter

Version:
17 lines 1.04 kB
import { Box, Text } from 'ink'; import React from 'react'; import { Log } from './log.js'; import { ResultDetailList } from './result-detail-list.js'; import { Runs } from './runs.js'; import { SuiteSummary } from './suite-summary.js'; const bannerWords = ' 🌈 TEST COMPLETE 🌈 '; const Banner = () => (React.createElement(Box, { flexDirection: "column", marginTop: 1 }, React.createElement(Text, { backgroundColor: "#fff" }, ' '.repeat(bannerWords.length)), React.createElement(Text, { bold: true, color: "black", backgroundColor: "#fff" }, bannerWords), React.createElement(Text, { backgroundColor: "#fff" }, ' '.repeat(bannerWords.length)))); export const Base = ({ test, config }) => (React.createElement(Box, { flexDirection: "column" }, React.createElement(Log, { test: test, config: config, includeTests: true }), React.createElement(Runs, { test: test }), React.createElement(ResultDetailList, { test, Banner }), React.createElement(SuiteSummary, { test: test }))); //# sourceMappingURL=base.js.map