The 21st century javascript unit testing framework.

Introduction

• What is Langoor?

Langoor is a javascript unit testing framework that focuses on error rendering and performance.

• Installation

Installing langoor with npm

npm install --save-dev langoor

or with yarn

yarn add --dev langoor

• Getting Started

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:

 LOADING  ../sum.test.js

 PASS  sum of 2 + 2 = 4 (0ms)

 

 Suites  1 passed | 0 failed | 1 total

 Tests  1 passed | 0 failed | 1 total