Package Exports
- jest-extended
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jest-extended) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
jest-extended
🃏💪
Additional Jest matchers
Problem
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.
Solution
jest-extended aims to add additional matchers to Jest's default ones making it easy to test everything 🙌
Contributing
If you've come here to help contribute - Thanks! Take a look at the contributing docs as a way of getting started.
Installation
With npm:
npm install --save-dev jest-extended
With yarn:
yarn add -D jest-extended
Setup
Add jest-extended to your Jest setupTestFrameworkScriptFile configuration. See for help
"jest": {
"setupTestFrameworkScriptFile": "jest-extended"
}
API
.toBeTrue()
Use .toBeTrue when checking a value is true
test('is jest cool', () => {
expect(isJestCool()).toBeTrue();
});
Contributors
Matt Phillips 📝 💻 📖 💡 🚇 ⚠️ |
---|
LICENSE
MIT