JavaScript/TypeScript Top-Level function cannot be stubbed if it is exported by an asterisk A top-level function is not a part of an object. If we need to stub it, we need to have an object that has the target fu... 2022.05.04 JavaScript/TypeScript
JavaScript/TypeScript TS2322 error when trying to add a property to an anonymous object To solve TS2322 or TS7053 error, you need to define the data type correctly. Let's define Optional/Mandatory type to omit some properties. 2022.05.02 JavaScript/TypeScript
JavaScript/TypeScript What is the difference between Stub and Mock In a unit test, we need to replace a real behavior with a test object but the variable name is sometimes xxxxStub for mo... 2022.04.29 JavaScript/TypeScript
JavaScript/TypeScript Reduce the number of if-else and switch-case conditional clauses Have you found a function is not readable because of lots of conditional clauses such as if-else or switch-case? It's ti... 2022.04.27 JavaScript/TypeScript
Recommendations Recommended Books for Programmers to enhance the skills Are you looking for a book to improve your programming skills? There are tons of books that we can buy today but not all... 2022.04.25 Recommendations
Recommendations Recommended Items for programmers for work-env and health care We programmers work in front of monitors for 8 hours a day. We need to take care of the body for our health because we k... 2022.04.22 Recommendations
Recommendations Look at the Mt.Fuji on the Akko World Tour Tokyo keyboard I bought a second keyboard a week later after I got keyboard. I use the rainbow-colored keyboard at home but I wanted an... 2022.04.20 Recommendations
Recommendations Review Jabra Evolve 75 UC Stereo Wireless Bluetooth Headset I have used Jabra Evolve 75 UC Stereo Wireless Bluetooth Headset for more than a year for my remote work.LooksThe switch... 2022.04.18 Recommendations
JavaScript/TypeScript TypeScript Stub Date and timer friends functions with sinon When Date class, timer friends functions like setTimeout, and setInterval are used in a function, we need to control the... 2022.04.15 JavaScript/TypeScript
Recommendations Fingerless Gloves for winter works to relieve hand pain of tendonitis Office workers overuse their fingers because we need to create documents or write source code for the new feature of an ... 2022.04.13 Recommendations