Sponsored links
Recommendations

Try to use wrist rests to reduce wrist strain

A worker normally works 8 hours a day. If there is no meeting, we use a keyboard and mouse for a longer time. Haven't yo...
JavaScript/TypeScript

How to determine test values for unit testing

Are you a beginner at unit testing? Are you not confident enough to choose the test cases? You are not alone. Let's lear...
JavaScript/TypeScript

TypeScript Stub Top Level function by Sinon

Functions called in a different function are not always class members. They are often top-level functions which are not ...
JavaScript/TypeScript

How to mock fs.readdir and fs.readFile for unit testing

Reading a directory to get a file list and then, loading the file one by one. You might have seen such a function. If it...
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
Sponsored links