node-testify.js
v3.1.4
Published
Simple and Flexible JavaScript test framework.
Downloads
6
Maintainers
Readme
Node-Testify.js
Simple JavaScript Test Framework
Testify is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun. Testify tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.
Simple, Flexible, Fun.
Supportion
- Node >=12
Installation
Install with npm globally:
$ npm install -g node-testify.js
or as a development dependency for your project:
$ npm install --save-dev node-testify.js
Getting Started
$ npm install node-testify.js
$ mkdir test && cd test
Optional:
$ code .
In your editor:
const assert = require('assert'); // Make sure you have assert installed
describe('Array', function() {
describe('#indexOf()', function() {
it('should return -1 when the value is not present', function() {
assert.equal([1, 2, 3].indexOf(4), -1);
});
});
});
Output:
$ ./node_modules/node-testify/bin/testify
Array
#indexOf()
✓ should return -1 when the value is not present
1 passing (9ms)