Langoor is a javascript unit testing framework that focuses on error rendering and performance.
Start by making a file called sum.js
function sum(a, b){
return a + b;
}
module.exports = sum;
Then, create a file called sum.test.js
const sum = require('./sum');
test("sum of 2 + 2 = 4", () => {
hope(sum(2, 2)).toBe(4);
});
Then, just run this in your console!
# in your root folder
langoor
Output: