cynic
Version:
async testing framework for es-modules
13 lines (10 loc) • 330 B
text/typescript
import {Suite} from "../../types.js"
import {execute} from "./execute.js"
import {summary} from "./summary.js"
export async function run(tests: Suite) {
const start = Date.now()
const results = await execute(tests)
const duration = Date.now() - start
const stats = {...summary(results), duration}
return {results, stats}
}