@magic/test
Version:
simple yet powerful unit testing library
20 lines (19 loc) • 389 B
TypeScript
export function test(t: PartialTest): void
export type TestStats = {
/**
* - Total number of tests
*/
all: number
/**
* - Number of passing tests
*/
pass: number
}
export type TestResults = Record<string, TestStats>
export type PartialTest = {
name: string
pkg?: string | undefined
parent?: string | undefined
pass: boolean
}
//# sourceMappingURL=test.d.ts.map