fix(tools): use correct superblock paths (#45285)
* fix: use array of choices * fix: capture traces from fs promise errors * fix: use helper to get superblock subpath
This commit is contained in:
committed by
GitHub
parent
25c927e79b
commit
108d2460e7
21
tools/challenge-helper-scripts/fs-utils.ts
Normal file
21
tools/challenge-helper-scripts/fs-utils.ts
Normal file
@ -0,0 +1,21 @@
|
||||
import { SuperBlocks } from '../../config/certification-settings';
|
||||
|
||||
export function getSuperBlockSubPath(superBlock: SuperBlocks): string {
|
||||
const pathMap = {
|
||||
[SuperBlocks.RespWebDesign]: '01-responsive-web-design',
|
||||
[SuperBlocks.JsAlgoDataStruct]:
|
||||
'02-javascript-algorithms-and-data-structures',
|
||||
[SuperBlocks.FrontEndDevLibs]: '03-front-end-development-libraries',
|
||||
[SuperBlocks.DataVis]: '04-data-visualization',
|
||||
[SuperBlocks.BackEndDevApis]: '05-back-end-development-and-apis',
|
||||
[SuperBlocks.QualityAssurance]: '06-quality-assurance',
|
||||
[SuperBlocks.SciCompPy]: '07-scientific-computing-with-python',
|
||||
[SuperBlocks.DataAnalysisPy]: '08-data-analysis-with-python',
|
||||
[SuperBlocks.InfoSec]: '09-information-security',
|
||||
[SuperBlocks.CodingInterviewPrep]: '10-coding-interview-prep',
|
||||
[SuperBlocks.MachineLearningPy]: '11-machine-learning-with-python',
|
||||
[SuperBlocks.RelationalDb]: '13-relational-databases',
|
||||
[SuperBlocks.RespWebDesignNew]: '14-responsive-web-design-22'
|
||||
};
|
||||
return pathMap[superBlock];
|
||||
}
|
Reference in New Issue
Block a user