Jest is an amazing test running and has some awesome assertion APIs built in by default. However there are times when having more specific matchers (assertions) would be far more convenient.
jest-extended aims to add additional matchers to Jest's default ones making it easy to test everything ๐
If you've come here to help contribute - Thanks! Take a look at the contributing docs as a way of getting started.
With npm:
npm install --save-dev jest-extended
With yarn:
yarn add -D jest-extended
Add jest-extended to your Jest setupTestFrameworkScriptFile configuration. See for help
"jest": {
"setupTestFrameworkScriptFile": "jest-extended"
}
Use .toBeTrue when checking a value is true
test('is jest cool', () => {
expect(isJestCool()).toBeTrue();
});
Matt Phillips ๐ ๐ป ๐ ๐ก ๐ |
---|
MIT