ember-qunit-nice-errors
Because expected true, result false is not enough!
This addon aims to improve the testing experience by defining a nice
message on those asserts that don't have one set by you.
Installation
As easy as ember install ember-qunit-nice-errors
Example
When you have a test with a failing assertion and no custom message, the default error doesn't say much.
As you can see by the following example test and the default ouput below:
import { module, test } from 'qunit';
module('Unit | ok test');
test('it works', function(assert) {
assert.ok(1===3);
});
But with ember-qunit-nice-errors the message is way nicer!
Supported assertions
We are currently supporting all the assertions provided by QUnit, those are:
ok
notOk
equal
notEqual
deepEqual
notDeepEqual
propEqual
notPropEqual
strictEqual
notStrictEqual
Maintainers
Credits
We got inspiration from
License
ember-qunit-nice-errors is licensed under the MIT license.
See LICENSE for the full license text.