import React, { ReactElement } from "react"; import "./TestSuiteCard.scss"; import { Test } from "../types"; import TestCard from "./TestCard"; interface TestSuiteCardProps { name: string; tests: { test: Test; result: boolean; error: Error | null; executionTime: number; }[]; } const TestSuiteCard = ( props: TestSuiteCardProps ): ReactElement => { const { name, tests } = props; const overallStatus = tests.map((t) => t.result).reduce((x, y) => x && y); return (
{name}
{tests.map((completedTest, index) => { const { test, result, error, executionTime } = completedTest; const { title, description } = test; return ( ); })}
); }; export default TestSuiteCard;