Testing framework should… Evolve slowly. This gives all the people confidence that their investment won't go to waste. ,FOU#FDLTBJE IUUQTIPQPSFJMMZDPNQSPEVDUEP
Stop memorizing tons of assertion APIs. Just create expressions that return a truthy value or not. And power-assert will show it to your right on the screen as part of your failure message without you having to type in a message at all. No API is the best API IUUQTHJUIVCDPNQPXFSBTTFSUKTQPXFSBTTFSU
const assert = require('assert'); describe('Pokemon', () => { it('name', () => { const pokemon = new Pokemon('Pidgey'); assert(pokemon.name === 'Poppo'); }); }); We eliminated the last dependency. Now your code does not depend on power-assert
From Library To Tool Your code does not depend on tools explicitly. Means that you can enhance your code outside from your code. Just like code coverage tools.
'use strict'; const assert = require('assert'); function add (a, b) { assert(!isNaN(a)); assert.equal(typeof b, 'number'); assert.ok(!isNaN(b)); return a + b; } assert in production code
'use strict'; const assert = require('assert'); function add (a, b) { assert(!isNaN(a)); assert.equal(typeof b, 'number'); assert.ok(!isNaN(b)); return a + b; } unassert in production https://github.com/unassert-js/unassert