jest-extended icon indicating copy to clipboard operation
jest-extended copied to clipboard

Additional Jest matchers 🃏💪

Results 150 jest-extended issues
Sort by recently updated
recently updated
newest added

I was looking for a shortcut to check if an Array exactly matches the contents including order (but was not necessarily strictly equal). The matcher would have test cases like...

**Feature Request** Description: It would be great to have a matcher to check if a variable is a Symbol. Possible solution: A `.toBeSymbol` matcher. I actually implemented this and submitted...

**Feature Request** Description: If found myself manipulating received objects by removing specific props that I didn't want to compare on, manipulating other props, wanting specific props not to be compared...

First of all: I understand that, according to [documentation](https://www.npmjs.com/package/jest-extended#tobehexadecimalstring), behavior is correct. What I mean is that name of method `toBeHexadecimal` is disguise. `toBeHTMLHexadecimalColor` or `toBeHexadecimalColor` would be better naming....

**Feature Request** Description: This is a copy of facebook/jest#6554 originally requested by @duailibe > There are some situations where I'd like to test a JSON string that is deep in...

I need to test several values at once in my tests. For example: expect(status).toBe(OK); expect(value).toBe(42); // What else? The problem here is that when `status` isn't OK, the next check...

Based on issue: https://github.com/facebook/jest/issues/6588 ## 🚀 Feature Proposal Find an object in an array that matches like an object. ## Motivation There may be times where you need to match...

**Feature Request** JS supports comparing strings: `'2018-01-01' < '2019-01-01'`. I want to do the same in Jest: expect(date).toBeGreaterThan('2019-07-01') Should this be in core even, relaxing the toBeLess/GraterThan checks for a...

First of all great work, this has been very useful to us. **Feature Request** Description: Since #168 the project has `toResolve()` and `toReject()`, bus as pointed in https://github.com/jest-community/jest-extended/issues/130#issuecomment-433866458 (BTW I...

**Feature Request** Hi there 👋 ## Description I'd like to propose a new `Function` matcher: `.toVerifyAllCombinations([args])`. It would test all combinations of given parameters to the function under test, and...