()
| 34 | const HERE = dirname(fileURLToPath(import.meta.url)); |
| 35 | |
| 36 | function flowFixture(): FlowView { |
| 37 | const closure = JSON.parse(readFileSync( |
| 38 | join(HERE, '__fixtures__', 'closure-userService-create.json'), |
| 39 | 'utf8', |
| 40 | )) as ClosureDocument; |
| 41 | const ir = (name: string): SemanticIR => JSON.parse(readFileSync( |
| 42 | join(HERE, '..', 'twin', '__fixtures__', `ir-${name}.json`), |
| 43 | 'utf8', |
| 44 | )) as SemanticIR; |
| 45 | return buildFlowView({ |
| 46 | closure, |
| 47 | irs: [ir('userService-create'), ir('createUser'), ir('listUsers'), ir('validateUser'), ir('insert')], |
| 48 | }); |
| 49 | } |
| 50 | |
| 51 | let container: HTMLDivElement; |
| 52 | let root: Root; |
no test coverage detected