Sponsored links
JavaScript/TypeScript

How to inject user input data for unit tests

Some console applications require user inputs. For those inputs, we need to write unit tests. If we using readline modul...
JavaScript/TypeScript

error C2039 ‘Buffer’ is not a member of ‘node’

When I ran a build for C++ code by node-gyp, the following error occurred. $ npm run build > module-name@2.9.14 build D:...
JavaScript/TypeScript

How to start Unit Testing in TypeScript with mocha and chai

Writing unit tests is an important step to be an intermediate developer from a beginner. The developers who can't write ...
Other techs

Setup a port forwarding by batch file

I needed to set up a port forwarding to access a machine via another machine. The setting was reset whenever the machine...
Dart and Flutter

Dart Convert String to int with default value on failure

There are some cases in which a string needs to be converted to int/double. How can we do it in Dart? We can use these 3...
Other techs

Bash fails in Gradle task on Azure pipeline with windows-2022

Azure pipeline, CI, continuous integration
Tips

Which info should be written to a log file

No application is perfect. All applications have bugs, unexpected and strange behaviors. They might be a small thing but...
JavaScript/TypeScript

Chai Compare object array

I needed to write tests for object array but I spent time on how to write it. I write down how to do it to save my time ...
JavaScript/TypeScript

NPM How to pin dependency version of a dependency

If you are looking for a solution to pin a dependency of a dependency, you can use npm-force-resolutions.Let's see the u...
Other techs

How to debug no console app with nssm

I needed to debug an application that is run as a windows service registered by nssm. The behavior that I wanted to inve...
Sponsored links