Skip to content

tjwhalen16/jest-extended

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

jest-extended

๐Ÿƒ๐Ÿ’ช

Additional Jest matchers


Build Status Code Coverage version downloads MIT License PRs Welcome Roadmap Examples

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

About

Additional Jest matchers ๐Ÿƒ๐Ÿ’ช

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%