London | ITP- Jan-2026|Ping Wang|Sprint 3|1-implement-rewrite test#972
London | ITP- Jan-2026|Ping Wang|Sprint 3|1-implement-rewrite test#972pathywang wants to merge 48 commits intoCodeYourFuture:mainfrom
Conversation
…xtensions Add recommended VS Code extensions
…cise-fixes Fixes and clarifications to sprint 1 exercises
The exercise claims there will be an error. Let's make there be one.
…error Re-introduce an error
This follows on from the prep.
* Remove the Debug exercise, and the time refactor exercise as they were already moved to sprint 2. * Remove the vowel refactor exercise. It's not clear what its goals are, or what it's looking for. We can re-add something here if we think it's valuable. * Make clear the implement exercises should use Jest - that's what the entire sprint was about. * Make previously "stretch" exercises be not stretch, because we've removed several pieces. * A bunch of copy edits where things were unclear or contained typos.
This is meant to round up, not round down.
Add format-time exercise
Thanks to @Grajales-K ⭐
prune repetitive or mathy assignments add scaffolding
scaffold each script file with faded examples https://cafe.cognitiveload.com.au/kb/fadedworkedexamples
reduce tasks, add naively passing tests
…5-version Revision: Overhauled coursework, general themes listed
Previously they were: 1. Very repetitive, having the trainees solve the same problem more than once which was confusing and not a great use of time. 2. Large. Reviewing the whole PR for the sprint took a long time, so was very daunting for reviewers, and led to review backlogs. 3. Hard to track who was doing the stretch, because it was maybe in the same PR or just maybe missing from the PR. Instead: 1. Re-use their implementation for both sets of tests - this emphasises also that the point of the exercise is writing tests different ways. 2. Split off the practice-tdd and stretch into their own expected separate PRs. 3. Fix up a bunch of inconsistent formatting.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
LonMcGregor
left a comment
There was a problem hiding this comment.
This all looks good, apart from task 3 - the get card value tests. When I run npm test and run the file directly,in both cases I get tests failing telling me Error was not thrown for invalid card - is this intentional? Can you figure out why that is happening?
|
thanks, it was not intentional,instead there is something wrong with my code (fn) should be fn() |
|
The changed files in this PR don't match what is expected for this task. Please check that you committed the right files for the task, and that there are no accidentally committed files from other sprints. Please review the changed files tab at the top of the page, we are only expecting changes in this directory: If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above. |
1 similar comment
|
The changed files in this PR don't match what is expected for this task. Please check that you committed the right files for the task, and that there are no accidentally committed files from other sprints. Please review the changed files tab at the top of the page, we are only expecting changes in this directory: If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above. |
1064881 to
6a34eb6
Compare
Changelist
I complete code with assertEquals test then use node to run in order to make sure the code written correctly to pass test for implement part. For rewirte test, i install npm install --save-dev jest to test function with jest in different file with different cases