Skip to content

London | 26-ITP-January | Karla Grajales | Sprint 3 | Practice TDD#1079

Open
Grajales-K wants to merge 8 commits intoCodeYourFuture:mainfrom
Grajales-K:coursework/sprint-3-practice-tdd
Open

London | 26-ITP-January | Karla Grajales | Sprint 3 | Practice TDD#1079
Grajales-K wants to merge 8 commits intoCodeYourFuture:mainfrom
Grajales-K:coursework/sprint-3-practice-tdd

Conversation

@Grajales-K
Copy link

@Grajales-K Grajales-K commented Feb 26, 2026

Learners, PR Template

Self checklist

  • 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

This project is about how to implement the test cases first. Once we cover all possibilities, we can implement the function step by step. I learned that if we need to optimize our function, the test cases are much easier to adapt if we avoid naming them 'case 1'. 'case 2', etc. Using module.export and npx jest --watch command was very helpful to get the real-time feedback on what was happening in our implementation.

Questions

Is this how the learning approach should be? Should I study the test cases before solving the function, e.g, in Codewars?

Thank you

@Grajales-K Grajales-K added 🏕 Priority Mandatory This work is expected 📅 Sprint 3 Assigned during Sprint 3 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Submit:PR Module-Structuring-And-Testing-Data The name of the module. labels Feb 26, 2026
@Grajales-K Grajales-K changed the title London | 26-ITP-January | Karla Grajales | Sprint 3 | 2 Practice TDD London | 26-ITP-January | Karla Grajales | Sprint 3 | Practice TDD Feb 26, 2026
- Added an emoji to the error string.
- Included try/catch blocks in tests to verify manual error capturing.
- Updated Jest assertions to match the new error format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Structuring-And-Testing-Data The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 🏕 Priority Mandatory This work is expected 📅 Sprint 3 Assigned during Sprint 3 of this module Submit:PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant