(spec)
| 75 | } |
| 76 | |
| 77 | function collectAllCodeSamples(spec) { |
| 78 | return Object.values(spec.paths || {}) |
| 79 | .flatMap((pathItem) => Object.values(pathItem || {})) |
| 80 | .filter((operation) => operation && typeof operation === 'object') |
| 81 | .flatMap((operation) => operation['x-codeSamples'] || []); |
| 82 | } |
| 83 | |
| 84 | function withGeneratedSpec(assertion) { |
| 85 | const snapshot = snapshotGeneratedFiles(); |
no outgoing calls
no test coverage detected