chore: use constants for superblocks (#43886)
* chore: use constants for superblocks * add prettier ts dec to challenge-helper-scripts * config/ to ts. broken * typescripterise tools/ and config/ * create global tsconfig, remove alternate configs * delete temp ts->js, add to gitignore * fix gitignore * re-import SuperBlocks in super-block-intro.tsx * remove renamed files added again * fix config * remove accidental files * remove snap * delete built files * adjust eslintrc for enums * add node types to root * ignore build files in lint and prettier * fix tools/ in tsconfig * ignore annoying ts warnings * prettierise Map/index.tsx * fix enum to match lint rule * rejig Map to render RWD superblock * 'pretty minor' - implicitly tsc within root Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> * fix client/package.json for Gitpod * broken: migrate @types to root * fix: use typeRoots to prevent duplication * fix show.tsx, try typeroots in root * silly fix for duplicate node_modules types * remove typeRoots from root * fix: tsconfig or not tsconfig, that is the... * fix: ...question: Whether 'tis nobler in the mind to suffer the slings and arrows of outrageous configs... * fix: Or to take Arms against a Sea of lint errors And by opposing end them Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@ -1,11 +1,12 @@
|
||||
/* global cy */
|
||||
import { SuperBlocks } from '../../../../config/certification-settings';
|
||||
|
||||
const selectors = {
|
||||
editor: '.react-monaco-editor-container'
|
||||
};
|
||||
|
||||
const pythonProjects = {
|
||||
superBlock: 'machine-learning-with-python',
|
||||
superBlock: SuperBlocks.MachineLearningPy,
|
||||
block: 'machine-learning-with-python-projects',
|
||||
challenges: [
|
||||
{
|
||||
@ -64,7 +65,7 @@ describe('project submission', () => {
|
||||
cy.login();
|
||||
cy.fixture('../../config/curriculum.json').then(curriculum => {
|
||||
const { challenges, meta } =
|
||||
curriculum['javascript-algorithms-and-data-structures'].blocks[
|
||||
curriculum[SuperBlocks.JsAlgoDataStruct].blocks[
|
||||
'javascript-algorithms-and-data-structures-projects'
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user