UNPKG

@puq/testing

Version:

The library offers a collection of robust utilities designed to enhance test quality, streamline testing processes, and minimize the time and effort required for effective test implementation.

8 lines (7 loc) 312 B
export function extractConstraints(t) { let n = []; return t && t.length > 0 && t.forEach((t)=>{ t.constraints && n.push(...Object.keys(t.constraints)), t.children && t.children.length > 0 && n.push(...extractConstraints(t.children)); }), n; } //# sourceMappingURL=extract-constraints.js.map