Skip to content

Comments

London | ITP- Jan-2026|Ping Wang|Sprint 3|1-implement-rewrite test#972

Closed
pathywang wants to merge 48 commits intoCodeYourFuture:mainfrom
pathywang:Sprint-3/1
Closed

London | ITP- Jan-2026|Ping Wang|Sprint 3|1-implement-rewrite test#972
pathywang wants to merge 48 commits intoCodeYourFuture:mainfrom
pathywang:Sprint-3/1

Conversation

@pathywang
Copy link

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

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

SallyMcGrath and others added 30 commits May 11, 2024 16:05
…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.
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.
prune repetitive or mathy assignments
add scaffolding
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.
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 16, 2026
@pathywang pathywang closed this Feb 16, 2026
@pathywang pathywang reopened this Feb 21, 2026
@github-actions

This comment has been minimized.

@pathywang pathywang added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 21, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 21, 2026
@pathywang pathywang added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 21, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 21, 2026
@pathywang pathywang added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 21, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Feb 23, 2026
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Feb 23, 2026
@pathywang
Copy link
Author

thanks, it was not intentional,instead there is something wrong with my code (fn) should be fn()

@pathywang pathywang added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Feb 23, 2026
@github-actions
Copy link

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: ^Sprint-3/1-implement-and-rewrite-tests/

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
@github-actions
Copy link

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: ^Sprint-3/1-implement-and-rewrite-tests/

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.

@github-actions github-actions bot removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Feb 23, 2026
@pathywang pathywang closed this Feb 23, 2026
@pathywang pathywang deleted the Sprint-3/1 branch February 23, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.