Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x, 22.x, 23.x]
jest-version: [27, 28, 29]
node-version: [18.x, 20.x, 22.x, 24.x]
jest-version: [27, 28, 29, 30]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
Expand All @@ -29,6 +29,10 @@ jobs:
- name: install
run: yarn install --immutable
- name: install with jest@${{ matrix.jest-version }}
if: ${{ matrix.jest-version == 30 }}
run: yarn add --dev jest@${{ matrix.jest-version }} ts-jest@29 @types/jest@${{ matrix.jest-version }}
- name: install with jest@${{ matrix.jest-version }}
if: ${{ matrix.jest-version != 30 }}
run: yarn add --dev jest@${{ matrix.jest-version }} ts-jest@${{ matrix.jest-version }} @types/jest@${{ matrix.jest-version }}
- run: yarn test:coverage
- uses: codecov/codecov-action@v5
Expand Down
10 changes: 4 additions & 6 deletions src/matchers/toHaveBeenCalledAfter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ export function toHaveBeenCalledAfter(
let pass = false;
let firstInvocationCallOrder = null;
let secondInvocationCallOrder = null;
if (isJestMockOrSpy(actual)) {
// @ts-expect-error isJestMockOrSpy provides the type check
firstInvocationCallOrder = actual.mock.invocationCallOrder;
secondInvocationCallOrder = expected.mock.invocationCallOrder;
pass = predicate(firstInvocationCallOrder, secondInvocationCallOrder, failIfNoFirstInvocation);
}
// @ts-expect-error isJestMockOrSpy provides the type check
firstInvocationCallOrder = actual.mock.invocationCallOrder;
secondInvocationCallOrder = expected.mock.invocationCallOrder;
pass = predicate(firstInvocationCallOrder, secondInvocationCallOrder, failIfNoFirstInvocation);

return {
pass,
Expand Down
10 changes: 4 additions & 6 deletions src/matchers/toHaveBeenCalledBefore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ export function toHaveBeenCalledBefore(
let pass = false;
let firstInvocationCallOrder = null;
let secondInvocationCallOrder = null;
if (isJestMockOrSpy(actual)) {
// @ts-expect-error isJestMockOrSpy provides the type check
firstInvocationCallOrder = actual.mock.invocationCallOrder;
secondInvocationCallOrder = expected.mock.invocationCallOrder;
pass = predicate(firstInvocationCallOrder, secondInvocationCallOrder, failIfNoSecondInvocation);
}
// @ts-expect-error isJestMockOrSpy provides the type check
firstInvocationCallOrder = actual.mock.invocationCallOrder;
secondInvocationCallOrder = expected.mock.invocationCallOrder;
pass = predicate(firstInvocationCallOrder, secondInvocationCallOrder, failIfNoSecondInvocation);

return {
pass,
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/fail.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.fail fails with message 1`] = `"This shouldn't fail!"`;

Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/pass.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.pass does not pass, has no message 1`] = `"passes by .pass() assertion"`;

Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeAfter.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeAfter fails when given a later date 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeAfter()</intensity>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeAfterOrEqualTo fails when given a later date 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeAfterOrEqualTo()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeArray.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeArray fails when given an array 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeArray()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeArrayOfSize.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeArrayOfSize fails when given an array of size 0 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeArrayOfSize(</intensity><green>expected</color><dim>)</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeBefore.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeBefore fails when given an earlier date 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeBefore()</intensity>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeBeforeOrEqualTo fails when given an earlier date 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeBeforeOrEqualTo()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeBetween.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeBefore fails when date is in given range 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeBetween()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeBigInt.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeInteger fails when given integer 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeBigInt()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeBoolean.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeBoolean fails when given a boolean 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeBoolean()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeDate.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeDate fails when given a date 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeDate()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeDateString.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeDateString fails when given a date string 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeDateString()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeEmpty.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeEmpty fails when given empty string 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeEmpty()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeEmptyObject.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeEmptyObject fails when given an empty object 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeEmptyObject()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeEven.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeEven fails when given an even BigInt 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeEven()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeExtensible.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeExtensible fails when given an extensible object: () => { } 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeExtensible()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeFalse.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeFalse fails when given false 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeFalse()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeFinite.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeFinite fails when given a BigInt value 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeFinite()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeFrozen.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeFrozen fails when given frozen object 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeFrozen()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeFunction.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeFunction fails when given a function 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeFunction()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeHexadecimal.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeHexadecimal fails when given valid hexadecimal 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeHexadecimal()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeInRange.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeInRange fails when given BigInt array is in the given range 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeInRange(</intensity><green>expected</color><dim>)</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeInteger.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeInteger fails when given integer 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeInteger()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeNaN.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeNaN fails when given a non-number 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeNaN()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeNegative.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeNegative fails when given negative BigInt 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeNegative()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeNil.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeNil fails when null is given 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeNil()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeNumber.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeNumber fails when given a number 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeNumber()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeObject.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeObject fails when given an object 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeObject()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeOdd.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeOdd fails when given an odd number 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeOdd()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeOneOf.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeOneOf fails when value is in given array 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeOneOf(</intensity><green>expected</color><dim>)</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBePositive.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBePositive fails when given a positive BigInt 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBePositive()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeSealed.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeSealed fails when given sealed object 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeSealed()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeString.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeString fails when given a string literal 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeString()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeSymbol.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeSymbol fails when given a symbol 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeSymbol()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeTrue.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeTrue fails when given true 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeTrue()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeValidDate.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeValidDate fails when given a valid date value 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeValidDate()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toBeWithin.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toBeWithin fails when given number is within the given bounds of start (inclusive) and end (exclusive) 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toBeWithin(</intensity><green>expected</color><dim>)</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toChange.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toChange fails when a value expected not to change defies all expectations and changes 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toChange()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toChangeBy.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toChangeBy fails when a value expected not to change defies all expectations and changes 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toChangeBy()</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toChangeTo.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toChangeTo fails when a BigInt value changes to the expected value 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toChangeTo()</intensity>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toContainAllEntries fails when object only contains all of the given entries 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toContainAllEntries(</intensity><green>expected</color><dim>)</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toContainAllKeys.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toContainAllKeys fails when given object contains all keys 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toContainAllKeys(</intensity><green>expected</color><dim>)</intensity>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toContainAllValues fails when given object contains all values including arrays 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toContainAllValues(</intensity><green>expected</color><dim>)</intensity>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toContainAnyEntries fails when given object contains atleast one of the given entries 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toContainAnyEntries(</intensity><green>expected</color><dim>)</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toContainAnyKeys.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toContainAnyKeys fails when object contains one or more keys 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toContainAnyKeys(</intensity><green>expected</color><dim>)</intensity>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toContainAnyValues fails when given object contains value 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toContainAnyValues(</intensity><green>expected</color><dim>)</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toContainEntries.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toContainEntries fails when object contains all of the given entries 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toContainEntries(</intensity><green>expected</color><dim>)</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toContainEntry.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toContainEntry fails when object contains given entry 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toContainEntry(</intensity><green>expected</color><dim>)</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toContainKey.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toContainKey fails when given object contains key 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toContainKey(</intensity><green>expected</color><dim>)</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toContainKeys.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toContainKeys fails when object contains all keys 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toContainKeys(</intensity><green>expected</color><dim>)</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toContainValue.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toContainValue fails when given object contains array value 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toContainValue(</intensity><green>expected</color><dim>)</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toContainValues.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toContainValues fails when given object contains all values including arrays 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toContainValues(</intensity><green>expected</color><dim>)</intensity>
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/__snapshots__/toEndWith.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toEndWith fails when string ends with given suffix 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toEndWith(</intensity><green>expected</color><dim>)</intensity>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toEqualCaseInsensitive fails if strings do not match 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toEqualCaseInsensitive(</intensity><green>expected</color><dim>)</intensity>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.toEqualIgnoringWhitespace should fail if strings are not equal, ignoring white-space 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).toEqualIgnoringWhitespace(</intensity><green>expected</color><dim>)</intensity>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`.not.toHaveBeenCalledAfter failIfNoFirstInvocation is passed as false failed when given first mock has not been called 1`] = `
"<dim>expect(</intensity><red>received</color><dim>).not.toHaveBeenCalledAfter(</intensity><green>expected</color><dim>)</intensity>
Expand Down
Loading