π One of the best visual rendering used.
π Excellent error rendering.
π Automatically searches for files ending with ".test.js" in your root folder.
πΈοΈ Uses the "assert" package to check equality and other features.
π Config system with ignore and additional files features.
# with npm
npm install -g langoor
# or with yarn
yarn add langoor
// PASS
test("should give 2 + 2 = 4", (assert) => {
assert.equal(2 + 2, 4);
});
// FAIL
test("should give 2/2 = 1", (assert) => {
assert.equal(2/1, 1);
});
# finding all files ending with ".test.js"
langoor
# adding additional files to the pre-existing files
langoor [file_path]
module.exports = {
additional: ["tests/3.js"], // Additional Files to add to the default ".test.js" files.
ignore: [], // Ignored files and folder.
};
test("a should not be undefined", () => {
var a = undefined;
if (a === undefined) throw new Error("a is undefined!!");
});
test("logs 'Langoor ROCKZZ!'", () => {
console.langoor('Langoor ROCKZZ!');
});