import test from 'ava-ts' ; import { safeDump } from 'js-yaml' ; import { getOrb , processWorkflows } from '../scripts/utils' ; const orb = getOrb ( ) ; const exampleNames = Object . keys ( orb . examples ) ; exampleNames . forEach ( ( name ) => { const example = orb . examples [ name ] ; test ( name , ( t ) => { t . plan ( 0 ) ; const jobs = example . usage . jobs ; const workflows = example . usage . workflows ; const executors = example . usage . executors ; const output = { workflows } ; if ( jobs ) { output . jobs = jobs ; } if ( executors ) { output . executors = executors ; } const text = safeDump ( output ) ; return processWorkflows ( text ) ; } ) ; } ) ;