a simple example for testing a function
install the json package stuff npm i
then use npm run test
to start the test
try to run a jest test for a function accepet 2 strings for a version.
I wrote this a function to check the version of an App. I try to improve it in the futuer that it works with the version of the user when the the user version is old give the user a message that he should update his App.
Try to change the values of the functoin but untill now it Hard coded
versionCompare('1.1.1', '1.1.1');
versionCompare('1.1.1', '1.0.1');
versionCompare('1.1.0', '1.1.1');