refactoring-code_smells-design_patterns icon indicating copy to clipboard operation
refactoring-code_smells-design_patterns copied to clipboard

feat: developaul-ts solution added

Open developaul opened this issue 1 year ago • 1 comments

Sharing my solution using TDD approach

image

I have the following questions:

What is recommended: hardcoding values/singletons again in the tests or reusing the values/singletons from production code?

  • This is causing me a lot of concern, as I understood that it's a bad practice to reuse constants/singletons used in production code in the tests.

  • I am saying this because, if you notice, I am repeating the pricing and it makes a lot of noise for me :(

image

developaul avatar Sep 28 '24 19:09 developaul