( challenges: ReturnType<typeof getChallenges> )
| 110 | * @returns A record mapping each Certification to an object with id, tests and challengeType. |
| 111 | */ |
| 112 | export function createCertLookup( |
| 113 | challenges: ReturnType<typeof getChallenges> |
| 114 | ): CertLookup { |
| 115 | const certLookup = {} as CertLookup; |
| 116 | |
| 117 | for (const cert of Object.values(Certification)) { |
| 118 | certLookup[cert] = getCertBySlug(cert, challenges); |
| 119 | } |
| 120 | return certLookup; |
| 121 | } |
| 122 | |
| 123 | function getUserIsCertMap(user: Partial<CertificationFlags>) { |
| 124 | const { |
no test coverage detected