v1.3.0 and the Chai Assertion Library
MiniSpec v1.3.0 has been released a few days ago. Among other tings, it brings official support for the Chai Assertion Library.
MiniSpec and assertion libraries
From the beginning, it was clear that MiniSpec would not implement its own assertion
library. Node.js build-in assert
would be the recommended one. It is actually used by MiniSpec for its own test suites!
But it was also planned to support other assertion libraries. And actually, nothing prevent anyone from using any existing one.
MiniSpec v1.3.0 and Chai
Chai is an assertion library, and nothing else. While Node.js assert
is minimalistic,
Chai brings a more comprehensive DSL, and mostly three interfaces - or styles - for
developers convenience.
MiniSpec v1.3.0 now supports Chai officially: its support is enforced in the automated test suites.
In order to use Chai as your assertion library, add it to your dependencies and use it as usual: