()
| 37 | } |
| 38 | |
| 39 | export async function getAllBlocks() { |
| 40 | const { fullSuperblockList } = (await parseCurriculumStructure()) as { |
| 41 | fullSuperblockList: { |
| 42 | blocks: { dashedName: string }[]; |
| 43 | }[]; |
| 44 | }; |
| 45 | const existingBlocks = fullSuperblockList.flatMap(({ blocks }) => |
| 46 | blocks.map(({ dashedName }) => dashedName) |
| 47 | ); |
| 48 | |
| 49 | return uniq(existingBlocks); |
| 50 | } |
| 51 | |
| 52 | const createStepFile = ({ |
| 53 | stepNum, |
no test coverage detected