From 6c16824b4875ffe376847cf51e850061104d9ff0 Mon Sep 17 00:00:00 2001 From: Mark Pedrotti Date: Wed, 27 Sep 2017 10:02:59 -0400 Subject: [PATCH 1/2] Add missing escape sequences to ConvertAnsi plugin --- .../__snapshots__/matchers.test.js.snap | 960 +++++++++--------- .../__snapshots__/spy_matchers.test.js.snap | 104 +- .../to_throw_matchers.test.js.snap | 68 +- .../format_test_name_by_pattern.test.js.snap | 24 +- .../get_snapshot_status.test.js.snap | 18 +- .../get_snapshot_summary.test.js.snap | 38 +- .../__snapshots__/utils.test.js.snap | 16 +- .../__snapshots__/normalize.test.js.snap | 52 +- .../__tests__/__snapshots__/diff.test.js.snap | 130 +-- .../__snapshots__/matchers.test.js.snap | 2 +- .../__snapshots__/index.test.js.snap | 8 +- .../__snapshots__/messages.test.js.snap | 10 +- .../validate_cli_options.test.js.snap | 12 +- .../__snapshots__/validate.test.js.snap | 128 +-- .../__snapshots__/react.test.js.snap | 8 +- .../pretty-format/src/plugins/convert_ansi.js | 14 + 16 files changed, 803 insertions(+), 789 deletions(-) diff --git a/packages/expect/src/__tests__/__snapshots__/matchers.test.js.snap b/packages/expect/src/__tests__/__snapshots__/matchers.test.js.snap index c71f7b087096..1c7e541cdad8 100644 --- a/packages/expect/src/__tests__/__snapshots__/matchers.test.js.snap +++ b/packages/expect/src/__tests__/__snapshots__/matchers.test.js.snap @@ -1,14 +1,14 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`.rejects fails for promise that resolves 1`] = ` -"expect(received).rejects.toBe() +"expect(received).rejects.toBe() Expected received Promise to reject, instead it resolved to value 4" `; exports[`.rejects fails non-promise value "a" 1`] = ` -"expect(received).rejects.toBeDefined() +"expect(received).rejects.toBeDefined() received value must be a Promise. Received: @@ -16,7 +16,7 @@ Received: `; exports[`.rejects fails non-promise value [1] 1`] = ` -"expect(received).rejects.toBeDefined() +"expect(received).rejects.toBeDefined() received value must be a Promise. Received: @@ -24,7 +24,7 @@ Received: `; exports[`.rejects fails non-promise value [Function anonymous] 1`] = ` -"expect(received).rejects.toBeDefined() +"expect(received).rejects.toBeDefined() received value must be a Promise. Received: @@ -32,7 +32,7 @@ Received: `; exports[`.rejects fails non-promise value {"a": 1} 1`] = ` -"expect(received).rejects.toBeDefined() +"expect(received).rejects.toBeDefined() received value must be a Promise. Received: @@ -40,7 +40,7 @@ Received: `; exports[`.rejects fails non-promise value 4 1`] = ` -"expect(received).rejects.toBeDefined() +"expect(received).rejects.toBeDefined() received value must be a Promise. Received: @@ -48,14 +48,14 @@ Received: `; exports[`.rejects fails non-promise value null 1`] = ` -"expect(received).rejects.toBeDefined() +"expect(received).rejects.toBeDefined() received value must be a Promise. Received: null" `; exports[`.rejects fails non-promise value true 1`] = ` -"expect(received).rejects.toBeDefined() +"expect(received).rejects.toBeDefined() received value must be a Promise. Received: @@ -63,21 +63,21 @@ Received: `; exports[`.rejects fails non-promise value undefined 1`] = ` -"expect(received).rejects.toBeDefined() +"expect(received).rejects.toBeDefined() received value must be a Promise. Received: undefined" `; exports[`.resolves fails for promise that rejects 1`] = ` -"expect(received).resolves.toBe() +"expect(received).resolves.toBe() Expected received Promise to resolve, instead it rejected to value 4" `; exports[`.resolves fails non-promise value "a" 1`] = ` -"expect(received).resolves.toBeDefined() +"expect(received).resolves.toBeDefined() received value must be a Promise. Received: @@ -85,7 +85,7 @@ Received: `; exports[`.resolves fails non-promise value [1] 1`] = ` -"expect(received).resolves.toBeDefined() +"expect(received).resolves.toBeDefined() received value must be a Promise. Received: @@ -93,7 +93,7 @@ Received: `; exports[`.resolves fails non-promise value [Function anonymous] 1`] = ` -"expect(received).resolves.toBeDefined() +"expect(received).resolves.toBeDefined() received value must be a Promise. Received: @@ -101,7 +101,7 @@ Received: `; exports[`.resolves fails non-promise value {"a": 1} 1`] = ` -"expect(received).resolves.toBeDefined() +"expect(received).resolves.toBeDefined() received value must be a Promise. Received: @@ -109,7 +109,7 @@ Received: `; exports[`.resolves fails non-promise value 4 1`] = ` -"expect(received).resolves.toBeDefined() +"expect(received).resolves.toBeDefined() received value must be a Promise. Received: @@ -117,14 +117,14 @@ Received: `; exports[`.resolves fails non-promise value null 1`] = ` -"expect(received).resolves.toBeDefined() +"expect(received).resolves.toBeDefined() received value must be a Promise. Received: null" `; exports[`.resolves fails non-promise value true 1`] = ` -"expect(received).resolves.toBeDefined() +"expect(received).resolves.toBeDefined() received value must be a Promise. Received: @@ -132,14 +132,14 @@ Received: `; exports[`.resolves fails non-promise value undefined 1`] = ` -"expect(received).resolves.toBeDefined() +"expect(received).resolves.toBeDefined() received value must be a Promise. Received: undefined" `; exports[`.toBe() does not crash on circular references 1`] = ` -"expect(received).toBe(expected) +"expect(received).toBe(expected) Expected value to be (using ===): {} @@ -158,7 +158,7 @@ Difference: `; exports[`.toBe() fails for '"a"' with '.not' 1`] = ` -"expect(received).not.toBe(expected) +"expect(received).not.toBe(expected) Expected value to not be (using ===): \\"a\\" @@ -167,7 +167,7 @@ Received: `; exports[`.toBe() fails for '[]' with '.not' 1`] = ` -"expect(received).not.toBe(expected) +"expect(received).not.toBe(expected) Expected value to not be (using ===): [] @@ -176,7 +176,7 @@ Received: `; exports[`.toBe() fails for '{}' with '.not' 1`] = ` -"expect(received).not.toBe(expected) +"expect(received).not.toBe(expected) Expected value to not be (using ===): {} @@ -185,7 +185,7 @@ Received: `; exports[`.toBe() fails for '1' with '.not' 1`] = ` -"expect(received).not.toBe(expected) +"expect(received).not.toBe(expected) Expected value to not be (using ===): 1 @@ -194,7 +194,7 @@ Received: `; exports[`.toBe() fails for 'false' with '.not' 1`] = ` -"expect(received).not.toBe(expected) +"expect(received).not.toBe(expected) Expected value to not be (using ===): false @@ -203,7 +203,7 @@ Received: `; exports[`.toBe() fails for 'null' with '.not' 1`] = ` -"expect(received).not.toBe(expected) +"expect(received).not.toBe(expected) Expected value to not be (using ===): null @@ -212,7 +212,7 @@ Received: `; exports[`.toBe() fails for 'undefined' with '.not' 1`] = ` -"expect(received).not.toBe(expected) +"expect(received).not.toBe(expected) Expected value to not be (using ===): undefined @@ -221,7 +221,7 @@ Received: `; exports[`.toBe() fails for: "abc" and "cde" 1`] = ` -"expect(received).toBe(expected) +"expect(received).toBe(expected) Expected value to be (using ===): \\"cde\\" @@ -230,7 +230,7 @@ Received: `; exports[`.toBe() fails for: [] and [] 1`] = ` -"expect(received).toBe(expected) +"expect(received).toBe(expected) Expected value to be (using ===): [] @@ -239,11 +239,11 @@ Received: Difference: -Compared values have no visual difference. Looks like you wanted to test for object/array equality with strict \`toBe\` matcher. You probably need to use \`toEqual\` instead." +Compared values have no visual difference. Looks like you wanted to test for object/array equality with strict \`toBe\` matcher. You probably need to use \`toEqual\` instead." `; exports[`.toBe() fails for: {"a": 1} and {"a": 1} 1`] = ` -"expect(received).toBe(expected) +"expect(received).toBe(expected) Expected value to be (using ===): {\\"a\\": 1} @@ -252,11 +252,11 @@ Received: Difference: -Compared values have no visual difference. Looks like you wanted to test for object/array equality with strict \`toBe\` matcher. You probably need to use \`toEqual\` instead." +Compared values have no visual difference. Looks like you wanted to test for object/array equality with strict \`toBe\` matcher. You probably need to use \`toEqual\` instead." `; exports[`.toBe() fails for: {"a": 1} and {"a": 5} 1`] = ` -"expect(received).toBe(expected) +"expect(received).toBe(expected) Expected value to be (using ===): {\\"a\\": 5} @@ -268,14 +268,14 @@ Difference: - Expected + Received - Object { + Object { - \\"a\\": 5, + \\"a\\": 1, - }" + }" `; exports[`.toBe() fails for: {} and {} 1`] = ` -"expect(received).toBe(expected) +"expect(received).toBe(expected) Expected value to be (using ===): {} @@ -284,11 +284,11 @@ Received: Difference: -Compared values have no visual difference. Looks like you wanted to test for object/array equality with strict \`toBe\` matcher. You probably need to use \`toEqual\` instead." +Compared values have no visual difference. Looks like you wanted to test for object/array equality with strict \`toBe\` matcher. You probably need to use \`toEqual\` instead." `; exports[`.toBe() fails for: 1 and 2 1`] = ` -"expect(received).toBe(expected) +"expect(received).toBe(expected) Expected value to be (using ===): 2 @@ -297,7 +297,7 @@ Received: `; exports[`.toBe() fails for: null and undefined 1`] = ` -"expect(received).toBe(expected) +"expect(received).toBe(expected) Expected value to be (using ===): undefined @@ -310,7 +310,7 @@ Difference: `; exports[`.toBe() fails for: true and false 1`] = ` -"expect(received).toBe(expected) +"expect(received).toBe(expected) Expected value to be (using ===): false @@ -319,7 +319,7 @@ Received: `; exports[`.toBeCloseTo() {pass: true} expect(0)toBeCloseTo( 0) 1`] = ` -"expect(received).not.toBeCloseTo(expected, precision) +"expect(received).not.toBeCloseTo(expected, precision) Expected value not to be close to (with 2-digit precision): 0 @@ -328,7 +328,7 @@ Received: `; exports[`.toBeCloseTo() {pass: true} expect(0)toBeCloseTo( 0.001) 1`] = ` -"expect(received).not.toBeCloseTo(expected, precision) +"expect(received).not.toBeCloseTo(expected, precision) Expected value not to be close to (with 2-digit precision): 0.001 @@ -337,7 +337,7 @@ Received: `; exports[`.toBeCloseTo() {pass: true} expect(1.23)toBeCloseTo( 1.225) 1`] = ` -"expect(received).not.toBeCloseTo(expected, precision) +"expect(received).not.toBeCloseTo(expected, precision) Expected value not to be close to (with 2-digit precision): 1.225 @@ -346,7 +346,7 @@ Received: `; exports[`.toBeCloseTo() {pass: true} expect(1.23)toBeCloseTo( 1.226) 1`] = ` -"expect(received).not.toBeCloseTo(expected, precision) +"expect(received).not.toBeCloseTo(expected, precision) Expected value not to be close to (with 2-digit precision): 1.226 @@ -355,7 +355,7 @@ Received: `; exports[`.toBeCloseTo() {pass: true} expect(1.23)toBeCloseTo( 1.229) 1`] = ` -"expect(received).not.toBeCloseTo(expected, precision) +"expect(received).not.toBeCloseTo(expected, precision) Expected value not to be close to (with 2-digit precision): 1.229 @@ -364,7 +364,7 @@ Received: `; exports[`.toBeCloseTo() {pass: true} expect(1.23)toBeCloseTo( 1.234) 1`] = ` -"expect(received).not.toBeCloseTo(expected, precision) +"expect(received).not.toBeCloseTo(expected, precision) Expected value not to be close to (with 2-digit precision): 1.234 @@ -373,7 +373,7 @@ Received: `; exports[`.toBeCloseTo() accepts an optional precision argument: [0, 0.000004, 5] 1`] = ` -"expect(received).not.toBeCloseTo(expected, precision) +"expect(received).not.toBeCloseTo(expected, precision) Expected value not to be close to (with 5-digit precision): 0.000004 @@ -382,7 +382,7 @@ Received: `; exports[`.toBeCloseTo() accepts an optional precision argument: [0, 0.0001, 3] 1`] = ` -"expect(received).not.toBeCloseTo(expected, precision) +"expect(received).not.toBeCloseTo(expected, precision) Expected value not to be close to (with 3-digit precision): 0.0001 @@ -391,7 +391,7 @@ Received: `; exports[`.toBeCloseTo() accepts an optional precision argument: [0, 0.1, 0] 1`] = ` -"expect(received).not.toBeCloseTo(expected, precision) +"expect(received).not.toBeCloseTo(expected, precision) Expected value not to be close to (with 0-digit precision): 0.1 @@ -400,7 +400,7 @@ Received: `; exports[`.toBeCloseTo() throws: [0, 0.01] 1`] = ` -"expect(received).toBeCloseTo(expected, precision) +"expect(received).toBeCloseTo(expected, precision) Expected value to be close to (with 2-digit precision): 0.01 @@ -409,7 +409,7 @@ Received: `; exports[`.toBeCloseTo() throws: [1, 1.23] 1`] = ` -"expect(received).toBeCloseTo(expected, precision) +"expect(received).toBeCloseTo(expected, precision) Expected value to be close to (with 2-digit precision): 1.23 @@ -418,7 +418,7 @@ Received: `; exports[`.toBeCloseTo() throws: [1.23, 1.2249999] 1`] = ` -"expect(received).toBeCloseTo(expected, precision) +"expect(received).toBeCloseTo(expected, precision) Expected value to be close to (with 2-digit precision): 1.2249999 @@ -427,147 +427,147 @@ Received: `; exports[`.toBeDefined(), .toBeUndefined() '"a"' is defined 1`] = ` -"expect(received).not.toBeDefined() +"expect(received).not.toBeDefined() Expected value not to be defined, instead received \\"a\\"" `; exports[`.toBeDefined(), .toBeUndefined() '"a"' is defined 2`] = ` -"expect(received).toBeUndefined() +"expect(received).toBeUndefined() Expected value to be undefined, instead received \\"a\\"" `; exports[`.toBeDefined(), .toBeUndefined() '[]' is defined 1`] = ` -"expect(received).not.toBeDefined() +"expect(received).not.toBeDefined() Expected value not to be defined, instead received []" `; exports[`.toBeDefined(), .toBeUndefined() '[]' is defined 2`] = ` -"expect(received).toBeUndefined() +"expect(received).toBeUndefined() Expected value to be undefined, instead received []" `; exports[`.toBeDefined(), .toBeUndefined() '[Function anonymous]' is defined 1`] = ` -"expect(received).not.toBeDefined() +"expect(received).not.toBeDefined() Expected value not to be defined, instead received [Function anonymous]" `; exports[`.toBeDefined(), .toBeUndefined() '[Function anonymous]' is defined 2`] = ` -"expect(received).toBeUndefined() +"expect(received).toBeUndefined() Expected value to be undefined, instead received [Function anonymous]" `; exports[`.toBeDefined(), .toBeUndefined() '{}' is defined 1`] = ` -"expect(received).not.toBeDefined() +"expect(received).not.toBeDefined() Expected value not to be defined, instead received {}" `; exports[`.toBeDefined(), .toBeUndefined() '{}' is defined 2`] = ` -"expect(received).toBeUndefined() +"expect(received).toBeUndefined() Expected value to be undefined, instead received {}" `; exports[`.toBeDefined(), .toBeUndefined() '0.5' is defined 1`] = ` -"expect(received).not.toBeDefined() +"expect(received).not.toBeDefined() Expected value not to be defined, instead received 0.5" `; exports[`.toBeDefined(), .toBeUndefined() '0.5' is defined 2`] = ` -"expect(received).toBeUndefined() +"expect(received).toBeUndefined() Expected value to be undefined, instead received 0.5" `; exports[`.toBeDefined(), .toBeUndefined() '1' is defined 1`] = ` -"expect(received).not.toBeDefined() +"expect(received).not.toBeDefined() Expected value not to be defined, instead received 1" `; exports[`.toBeDefined(), .toBeUndefined() '1' is defined 2`] = ` -"expect(received).toBeUndefined() +"expect(received).toBeUndefined() Expected value to be undefined, instead received 1" `; exports[`.toBeDefined(), .toBeUndefined() 'Infinity' is defined 1`] = ` -"expect(received).not.toBeDefined() +"expect(received).not.toBeDefined() Expected value not to be defined, instead received Infinity" `; exports[`.toBeDefined(), .toBeUndefined() 'Infinity' is defined 2`] = ` -"expect(received).toBeUndefined() +"expect(received).toBeUndefined() Expected value to be undefined, instead received Infinity" `; exports[`.toBeDefined(), .toBeUndefined() 'Map {}' is defined 1`] = ` -"expect(received).not.toBeDefined() +"expect(received).not.toBeDefined() Expected value not to be defined, instead received Map {}" `; exports[`.toBeDefined(), .toBeUndefined() 'Map {}' is defined 2`] = ` -"expect(received).toBeUndefined() +"expect(received).toBeUndefined() Expected value to be undefined, instead received Map {}" `; exports[`.toBeDefined(), .toBeUndefined() 'true' is defined 1`] = ` -"expect(received).not.toBeDefined() +"expect(received).not.toBeDefined() Expected value not to be defined, instead received true" `; exports[`.toBeDefined(), .toBeUndefined() 'true' is defined 2`] = ` -"expect(received).toBeUndefined() +"expect(received).toBeUndefined() Expected value to be undefined, instead received true" `; exports[`.toBeDefined(), .toBeUndefined() undefined is undefined 1`] = ` -"expect(received).toBeDefined() +"expect(received).toBeDefined() Expected value to be defined, instead received undefined" `; exports[`.toBeDefined(), .toBeUndefined() undefined is undefined 2`] = ` -"expect(received).not.toBeUndefined() +"expect(received).not.toBeUndefined() Expected value not to be undefined, instead received undefined" `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() equal numbers: [-Infinity, -Infinity] 1`] = ` -"expect(received).not.toBeGreaterThanOrEqual(expected) +"expect(received).not.toBeGreaterThanOrEqual(expected) Expected value not to be greater than or equal: -Infinity @@ -576,7 +576,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() equal numbers: [-Infinity, -Infinity] 2`] = ` -"expect(received).not.toBeLessThanOrEqual(expected) +"expect(received).not.toBeLessThanOrEqual(expected) Expected value not to be less than or equal: -Infinity @@ -585,7 +585,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() equal numbers: [1, 1] 1`] = ` -"expect(received).not.toBeGreaterThanOrEqual(expected) +"expect(received).not.toBeGreaterThanOrEqual(expected) Expected value not to be greater than or equal: 1 @@ -594,7 +594,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() equal numbers: [1, 1] 2`] = ` -"expect(received).not.toBeLessThanOrEqual(expected) +"expect(received).not.toBeLessThanOrEqual(expected) Expected value not to be less than or equal: 1 @@ -603,7 +603,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() equal numbers: [1.7976931348623157e+308, 1.7976931348623157e+308] 1`] = ` -"expect(received).not.toBeGreaterThanOrEqual(expected) +"expect(received).not.toBeGreaterThanOrEqual(expected) Expected value not to be greater than or equal: 1.7976931348623157e+308 @@ -612,7 +612,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() equal numbers: [1.7976931348623157e+308, 1.7976931348623157e+308] 2`] = ` -"expect(received).not.toBeLessThanOrEqual(expected) +"expect(received).not.toBeLessThanOrEqual(expected) Expected value not to be less than or equal: 1.7976931348623157e+308 @@ -621,7 +621,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() equal numbers: [5e-324, 5e-324] 1`] = ` -"expect(received).not.toBeGreaterThanOrEqual(expected) +"expect(received).not.toBeGreaterThanOrEqual(expected) Expected value not to be greater than or equal: 5e-324 @@ -630,7 +630,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() equal numbers: [5e-324, 5e-324] 2`] = ` -"expect(received).not.toBeLessThanOrEqual(expected) +"expect(received).not.toBeLessThanOrEqual(expected) Expected value not to be less than or equal: 5e-324 @@ -639,7 +639,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() equal numbers: [Infinity, Infinity] 1`] = ` -"expect(received).not.toBeGreaterThanOrEqual(expected) +"expect(received).not.toBeGreaterThanOrEqual(expected) Expected value not to be greater than or equal: Infinity @@ -648,7 +648,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() equal numbers: [Infinity, Infinity] 2`] = ` -"expect(received).not.toBeLessThanOrEqual(expected) +"expect(received).not.toBeLessThanOrEqual(expected) Expected value not to be less than or equal: Infinity @@ -657,7 +657,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [-Infinity, Infinity] 1`] = ` -"expect(received).toBeGreaterThan(expected) +"expect(received).toBeGreaterThan(expected) Expected value to be greater than: Infinity @@ -666,7 +666,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [-Infinity, Infinity] 2`] = ` -"expect(received).not.toBeLessThan(expected) +"expect(received).not.toBeLessThan(expected) Expected value not to be less than: Infinity @@ -675,7 +675,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [-Infinity, Infinity] 3`] = ` -"expect(received).not.toBeGreaterThan(expected) +"expect(received).not.toBeGreaterThan(expected) Expected value not to be greater than: -Infinity @@ -684,7 +684,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [-Infinity, Infinity] 4`] = ` -"expect(received).toBeLessThan(expected) +"expect(received).toBeLessThan(expected) Expected value to be less than: -Infinity @@ -693,7 +693,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [-Infinity, Infinity] 5`] = ` -"expect(received).toBeGreaterThanOrEqual(expected) +"expect(received).toBeGreaterThanOrEqual(expected) Expected value to be greater than or equal: Infinity @@ -702,7 +702,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [-Infinity, Infinity] 6`] = ` -"expect(received).not.toBeLessThanOrEqual(expected) +"expect(received).not.toBeLessThanOrEqual(expected) Expected value not to be less than or equal: Infinity @@ -711,7 +711,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [-Infinity, Infinity] 7`] = ` -"expect(received).not.toBeGreaterThanOrEqual(expected) +"expect(received).not.toBeGreaterThanOrEqual(expected) Expected value not to be greater than or equal: -Infinity @@ -720,7 +720,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [-Infinity, Infinity] 8`] = ` -"expect(received).toBeLessThanOrEqual(expected) +"expect(received).toBeLessThanOrEqual(expected) Expected value to be less than or equal: -Infinity @@ -729,7 +729,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [0.1, 0.2] 1`] = ` -"expect(received).toBeGreaterThan(expected) +"expect(received).toBeGreaterThan(expected) Expected value to be greater than: 0.2 @@ -738,7 +738,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [0.1, 0.2] 2`] = ` -"expect(received).not.toBeLessThan(expected) +"expect(received).not.toBeLessThan(expected) Expected value not to be less than: 0.2 @@ -747,7 +747,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [0.1, 0.2] 3`] = ` -"expect(received).not.toBeGreaterThan(expected) +"expect(received).not.toBeGreaterThan(expected) Expected value not to be greater than: 0.1 @@ -756,7 +756,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [0.1, 0.2] 4`] = ` -"expect(received).toBeLessThan(expected) +"expect(received).toBeLessThan(expected) Expected value to be less than: 0.1 @@ -765,7 +765,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [0.1, 0.2] 5`] = ` -"expect(received).toBeGreaterThanOrEqual(expected) +"expect(received).toBeGreaterThanOrEqual(expected) Expected value to be greater than or equal: 0.2 @@ -774,7 +774,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [0.1, 0.2] 6`] = ` -"expect(received).not.toBeLessThanOrEqual(expected) +"expect(received).not.toBeLessThanOrEqual(expected) Expected value not to be less than or equal: 0.2 @@ -783,7 +783,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [0.1, 0.2] 7`] = ` -"expect(received).not.toBeGreaterThanOrEqual(expected) +"expect(received).not.toBeGreaterThanOrEqual(expected) Expected value not to be greater than or equal: 0.1 @@ -792,7 +792,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [0.1, 0.2] 8`] = ` -"expect(received).toBeLessThanOrEqual(expected) +"expect(received).toBeLessThanOrEqual(expected) Expected value to be less than or equal: 0.1 @@ -801,7 +801,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [1, 2] 1`] = ` -"expect(received).toBeGreaterThan(expected) +"expect(received).toBeGreaterThan(expected) Expected value to be greater than: 2 @@ -810,7 +810,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [1, 2] 2`] = ` -"expect(received).not.toBeLessThan(expected) +"expect(received).not.toBeLessThan(expected) Expected value not to be less than: 2 @@ -819,7 +819,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [1, 2] 3`] = ` -"expect(received).not.toBeGreaterThan(expected) +"expect(received).not.toBeGreaterThan(expected) Expected value not to be greater than: 1 @@ -828,7 +828,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [1, 2] 4`] = ` -"expect(received).toBeLessThan(expected) +"expect(received).toBeLessThan(expected) Expected value to be less than: 1 @@ -837,7 +837,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [1, 2] 5`] = ` -"expect(received).toBeGreaterThanOrEqual(expected) +"expect(received).toBeGreaterThanOrEqual(expected) Expected value to be greater than or equal: 2 @@ -846,7 +846,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [1, 2] 6`] = ` -"expect(received).not.toBeLessThanOrEqual(expected) +"expect(received).not.toBeLessThanOrEqual(expected) Expected value not to be less than or equal: 2 @@ -855,7 +855,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [1, 2] 7`] = ` -"expect(received).not.toBeGreaterThanOrEqual(expected) +"expect(received).not.toBeGreaterThanOrEqual(expected) Expected value not to be greater than or equal: 1 @@ -864,7 +864,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [1, 2] 8`] = ` -"expect(received).toBeLessThanOrEqual(expected) +"expect(received).toBeLessThanOrEqual(expected) Expected value to be less than or equal: 1 @@ -873,7 +873,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [3, 7] 1`] = ` -"expect(received).toBeGreaterThan(expected) +"expect(received).toBeGreaterThan(expected) Expected value to be greater than: 7 @@ -882,7 +882,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [3, 7] 2`] = ` -"expect(received).not.toBeLessThan(expected) +"expect(received).not.toBeLessThan(expected) Expected value not to be less than: 7 @@ -891,7 +891,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [3, 7] 3`] = ` -"expect(received).not.toBeGreaterThan(expected) +"expect(received).not.toBeGreaterThan(expected) Expected value not to be greater than: 3 @@ -900,7 +900,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [3, 7] 4`] = ` -"expect(received).toBeLessThan(expected) +"expect(received).toBeLessThan(expected) Expected value to be less than: 3 @@ -909,7 +909,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [3, 7] 5`] = ` -"expect(received).toBeGreaterThanOrEqual(expected) +"expect(received).toBeGreaterThanOrEqual(expected) Expected value to be greater than or equal: 7 @@ -918,7 +918,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [3, 7] 6`] = ` -"expect(received).not.toBeLessThanOrEqual(expected) +"expect(received).not.toBeLessThanOrEqual(expected) Expected value not to be less than or equal: 7 @@ -927,7 +927,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [3, 7] 7`] = ` -"expect(received).not.toBeGreaterThanOrEqual(expected) +"expect(received).not.toBeGreaterThanOrEqual(expected) Expected value not to be greater than or equal: 3 @@ -936,7 +936,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [3, 7] 8`] = ` -"expect(received).toBeLessThanOrEqual(expected) +"expect(received).toBeLessThanOrEqual(expected) Expected value to be less than or equal: 3 @@ -945,7 +945,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [5e-324, 1.7976931348623157e+308] 1`] = ` -"expect(received).toBeGreaterThan(expected) +"expect(received).toBeGreaterThan(expected) Expected value to be greater than: 1.7976931348623157e+308 @@ -954,7 +954,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [5e-324, 1.7976931348623157e+308] 2`] = ` -"expect(received).not.toBeLessThan(expected) +"expect(received).not.toBeLessThan(expected) Expected value not to be less than: 1.7976931348623157e+308 @@ -963,7 +963,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [5e-324, 1.7976931348623157e+308] 3`] = ` -"expect(received).not.toBeGreaterThan(expected) +"expect(received).not.toBeGreaterThan(expected) Expected value not to be greater than: 5e-324 @@ -972,7 +972,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [5e-324, 1.7976931348623157e+308] 4`] = ` -"expect(received).toBeLessThan(expected) +"expect(received).toBeLessThan(expected) Expected value to be less than: 5e-324 @@ -981,7 +981,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [5e-324, 1.7976931348623157e+308] 5`] = ` -"expect(received).toBeGreaterThanOrEqual(expected) +"expect(received).toBeGreaterThanOrEqual(expected) Expected value to be greater than or equal: 1.7976931348623157e+308 @@ -990,7 +990,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [5e-324, 1.7976931348623157e+308] 6`] = ` -"expect(received).not.toBeLessThanOrEqual(expected) +"expect(received).not.toBeLessThanOrEqual(expected) Expected value not to be less than or equal: 1.7976931348623157e+308 @@ -999,7 +999,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [5e-324, 1.7976931348623157e+308] 7`] = ` -"expect(received).not.toBeGreaterThanOrEqual(expected) +"expect(received).not.toBeGreaterThanOrEqual(expected) Expected value not to be greater than or equal: 5e-324 @@ -1008,7 +1008,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [5e-324, 1.7976931348623157e+308] 8`] = ` -"expect(received).toBeLessThanOrEqual(expected) +"expect(received).toBeLessThanOrEqual(expected) Expected value to be less than or equal: 5e-324 @@ -1017,7 +1017,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [9, 18] 1`] = ` -"expect(received).toBeGreaterThan(expected) +"expect(received).toBeGreaterThan(expected) Expected value to be greater than: 18 @@ -1026,7 +1026,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [9, 18] 2`] = ` -"expect(received).not.toBeLessThan(expected) +"expect(received).not.toBeLessThan(expected) Expected value not to be less than: 18 @@ -1035,7 +1035,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [9, 18] 3`] = ` -"expect(received).not.toBeGreaterThan(expected) +"expect(received).not.toBeGreaterThan(expected) Expected value not to be greater than: 9 @@ -1044,7 +1044,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [9, 18] 4`] = ` -"expect(received).toBeLessThan(expected) +"expect(received).toBeLessThan(expected) Expected value to be less than: 9 @@ -1053,7 +1053,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [9, 18] 5`] = ` -"expect(received).toBeGreaterThanOrEqual(expected) +"expect(received).toBeGreaterThanOrEqual(expected) Expected value to be greater than or equal: 18 @@ -1062,7 +1062,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [9, 18] 6`] = ` -"expect(received).not.toBeLessThanOrEqual(expected) +"expect(received).not.toBeLessThanOrEqual(expected) Expected value not to be less than or equal: 18 @@ -1071,7 +1071,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [9, 18] 7`] = ` -"expect(received).not.toBeGreaterThanOrEqual(expected) +"expect(received).not.toBeGreaterThanOrEqual(expected) Expected value not to be greater than or equal: 9 @@ -1080,7 +1080,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [9, 18] 8`] = ` -"expect(received).toBeLessThanOrEqual(expected) +"expect(received).toBeLessThanOrEqual(expected) Expected value to be less than or equal: 9 @@ -1089,7 +1089,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [17, 34] 1`] = ` -"expect(received).toBeGreaterThan(expected) +"expect(received).toBeGreaterThan(expected) Expected value to be greater than: 34 @@ -1098,7 +1098,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [17, 34] 2`] = ` -"expect(received).not.toBeLessThan(expected) +"expect(received).not.toBeLessThan(expected) Expected value not to be less than: 34 @@ -1107,7 +1107,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [17, 34] 3`] = ` -"expect(received).not.toBeGreaterThan(expected) +"expect(received).not.toBeGreaterThan(expected) Expected value not to be greater than: 17 @@ -1116,7 +1116,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [17, 34] 4`] = ` -"expect(received).toBeLessThan(expected) +"expect(received).toBeLessThan(expected) Expected value to be less than: 17 @@ -1125,7 +1125,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [17, 34] 5`] = ` -"expect(received).toBeGreaterThanOrEqual(expected) +"expect(received).toBeGreaterThanOrEqual(expected) Expected value to be greater than or equal: 34 @@ -1134,7 +1134,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [17, 34] 6`] = ` -"expect(received).not.toBeLessThanOrEqual(expected) +"expect(received).not.toBeLessThanOrEqual(expected) Expected value not to be less than or equal: 34 @@ -1143,7 +1143,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [17, 34] 7`] = ` -"expect(received).not.toBeGreaterThanOrEqual(expected) +"expect(received).not.toBeGreaterThanOrEqual(expected) Expected value not to be greater than or equal: 17 @@ -1152,7 +1152,7 @@ Received: `; exports[`.toBeGreaterThan(), .toBeLessThan(), .toBeGreaterThanOrEqual(), .toBeLessThanOrEqual() throws: [17, 34] 8`] = ` -"expect(received).toBeLessThanOrEqual(expected) +"expect(received).toBeLessThanOrEqual(expected) Expected value to be less than or equal: 17 @@ -1161,7 +1161,7 @@ Received: `; exports[`.toBeInstanceOf() failing "a" and [Function String] 1`] = ` -"expect(value).toBeInstanceOf(constructor) +"expect(value).toBeInstanceOf(constructor) Expected value to be an instance of: \\"String\\" @@ -1172,7 +1172,7 @@ Constructor: `; exports[`.toBeInstanceOf() failing {} and [Function A] 1`] = ` -"expect(value).toBeInstanceOf(constructor) +"expect(value).toBeInstanceOf(constructor) Expected value to be an instance of: \\"A\\" @@ -1183,7 +1183,7 @@ Constructor: `; exports[`.toBeInstanceOf() failing {} and [Function B] 1`] = ` -"expect(value).toBeInstanceOf(constructor) +"expect(value).toBeInstanceOf(constructor) Expected value to be an instance of: \\"B\\" @@ -1194,7 +1194,7 @@ Constructor: `; exports[`.toBeInstanceOf() failing 1 and [Function Number] 1`] = ` -"expect(value).toBeInstanceOf(constructor) +"expect(value).toBeInstanceOf(constructor) Expected value to be an instance of: \\"Number\\" @@ -1205,7 +1205,7 @@ Constructor: `; exports[`.toBeInstanceOf() failing true and [Function Boolean] 1`] = ` -"expect(value).toBeInstanceOf(constructor) +"expect(value).toBeInstanceOf(constructor) Expected value to be an instance of: \\"Boolean\\" @@ -1216,7 +1216,7 @@ Constructor: `; exports[`.toBeInstanceOf() passing [] and [Function Array] 1`] = ` -"expect(value).not.toBeInstanceOf(constructor) +"expect(value).not.toBeInstanceOf(constructor) Expected value not to be an instance of: \\"Array\\" @@ -1226,7 +1226,7 @@ Received: `; exports[`.toBeInstanceOf() passing {} and [Function A] 1`] = ` -"expect(value).not.toBeInstanceOf(constructor) +"expect(value).not.toBeInstanceOf(constructor) Expected value not to be an instance of: \\"A\\" @@ -1236,7 +1236,7 @@ Received: `; exports[`.toBeInstanceOf() passing Map {} and [Function Map] 1`] = ` -"expect(value).not.toBeInstanceOf(constructor) +"expect(value).not.toBeInstanceOf(constructor) Expected value not to be an instance of: \\"Map\\" @@ -1246,406 +1246,406 @@ Received: `; exports[`.toBeInstanceOf() throws if constructor is not a function 1`] = ` -"expect(value)[.not].toBeInstanceOf(constructor) +"expect(value)[.not].toBeInstanceOf(constructor) Expected constructor to be a function. Instead got: \\"number\\"" `; exports[`.toBeNaN() {pass: true} expect(NaN).toBeNaN() 1`] = ` -"expect(received).not.toBeNaN() +"expect(received).not.toBeNaN() Expected value not to be NaN, instead received NaN" `; exports[`.toBeNaN() {pass: true} expect(NaN).toBeNaN() 2`] = ` -"expect(received).not.toBeNaN() +"expect(received).not.toBeNaN() Expected value not to be NaN, instead received NaN" `; exports[`.toBeNaN() {pass: true} expect(NaN).toBeNaN() 3`] = ` -"expect(received).not.toBeNaN() +"expect(received).not.toBeNaN() Expected value not to be NaN, instead received NaN" `; exports[`.toBeNaN() {pass: true} expect(NaN).toBeNaN() 4`] = ` -"expect(received).not.toBeNaN() +"expect(received).not.toBeNaN() Expected value not to be NaN, instead received NaN" `; exports[`.toBeNaN() throws 1`] = ` -"expect(received).toBeNaN() +"expect(received).toBeNaN() Expected value to be NaN, instead received 1" `; exports[`.toBeNaN() throws 2`] = ` -"expect(received).toBeNaN() +"expect(received).toBeNaN() Expected value to be NaN, instead received \\"\\"" `; exports[`.toBeNaN() throws 3`] = ` -"expect(received).toBeNaN() +"expect(received).toBeNaN() Expected value to be NaN, instead received null" `; exports[`.toBeNaN() throws 4`] = ` -"expect(received).toBeNaN() +"expect(received).toBeNaN() Expected value to be NaN, instead received undefined" `; exports[`.toBeNaN() throws 5`] = ` -"expect(received).toBeNaN() +"expect(received).toBeNaN() Expected value to be NaN, instead received {}" `; exports[`.toBeNaN() throws 6`] = ` -"expect(received).toBeNaN() +"expect(received).toBeNaN() Expected value to be NaN, instead received []" `; exports[`.toBeNaN() throws 7`] = ` -"expect(received).toBeNaN() +"expect(received).toBeNaN() Expected value to be NaN, instead received 0.2" `; exports[`.toBeNaN() throws 8`] = ` -"expect(received).toBeNaN() +"expect(received).toBeNaN() Expected value to be NaN, instead received 0" `; exports[`.toBeNaN() throws 9`] = ` -"expect(received).toBeNaN() +"expect(received).toBeNaN() Expected value to be NaN, instead received Infinity" `; exports[`.toBeNaN() throws 10`] = ` -"expect(received).toBeNaN() +"expect(received).toBeNaN() Expected value to be NaN, instead received -Infinity" `; exports[`.toBeNull() fails for '"a"' with .not 1`] = ` -"expect(received).toBeNull() +"expect(received).toBeNull() Expected value to be null, instead received \\"a\\"" `; exports[`.toBeNull() fails for '[]' with .not 1`] = ` -"expect(received).toBeNull() +"expect(received).toBeNull() Expected value to be null, instead received []" `; exports[`.toBeNull() fails for '[Function anonymous]' with .not 1`] = ` -"expect(received).toBeNull() +"expect(received).toBeNull() Expected value to be null, instead received [Function anonymous]" `; exports[`.toBeNull() fails for '{}' with .not 1`] = ` -"expect(received).toBeNull() +"expect(received).toBeNull() Expected value to be null, instead received {}" `; exports[`.toBeNull() fails for '0.5' with .not 1`] = ` -"expect(received).toBeNull() +"expect(received).toBeNull() Expected value to be null, instead received 0.5" `; exports[`.toBeNull() fails for '1' with .not 1`] = ` -"expect(received).toBeNull() +"expect(received).toBeNull() Expected value to be null, instead received 1" `; exports[`.toBeNull() fails for 'Infinity' with .not 1`] = ` -"expect(received).toBeNull() +"expect(received).toBeNull() Expected value to be null, instead received Infinity" `; exports[`.toBeNull() fails for 'Map {}' with .not 1`] = ` -"expect(received).toBeNull() +"expect(received).toBeNull() Expected value to be null, instead received Map {}" `; exports[`.toBeNull() fails for 'true' with .not 1`] = ` -"expect(received).toBeNull() +"expect(received).toBeNull() Expected value to be null, instead received true" `; exports[`.toBeNull() pass for null 1`] = ` -"expect(received).not.toBeNull() +"expect(received).not.toBeNull() Expected value not to be null, instead received null" `; exports[`.toBeTruthy(), .toBeFalsy() '""' is falsy 1`] = ` -"expect(received).toBeTruthy() +"expect(received).toBeTruthy() Expected value to be truthy, instead received \\"\\"" `; exports[`.toBeTruthy(), .toBeFalsy() '""' is falsy 2`] = ` -"expect(received).not.toBeFalsy() +"expect(received).not.toBeFalsy() Expected value not to be falsy, instead received \\"\\"" `; exports[`.toBeTruthy(), .toBeFalsy() '"a"' is truthy 1`] = ` -"expect(received).not.toBeTruthy() +"expect(received).not.toBeTruthy() Expected value not to be truthy, instead received \\"a\\"" `; exports[`.toBeTruthy(), .toBeFalsy() '"a"' is truthy 2`] = ` -"expect(received).toBeFalsy() +"expect(received).toBeFalsy() Expected value to be falsy, instead received \\"a\\"" `; exports[`.toBeTruthy(), .toBeFalsy() '[]' is truthy 1`] = ` -"expect(received).not.toBeTruthy() +"expect(received).not.toBeTruthy() Expected value not to be truthy, instead received []" `; exports[`.toBeTruthy(), .toBeFalsy() '[]' is truthy 2`] = ` -"expect(received).toBeFalsy() +"expect(received).toBeFalsy() Expected value to be falsy, instead received []" `; exports[`.toBeTruthy(), .toBeFalsy() '[Function anonymous]' is truthy 1`] = ` -"expect(received).not.toBeTruthy() +"expect(received).not.toBeTruthy() Expected value not to be truthy, instead received [Function anonymous]" `; exports[`.toBeTruthy(), .toBeFalsy() '[Function anonymous]' is truthy 2`] = ` -"expect(received).toBeFalsy() +"expect(received).toBeFalsy() Expected value to be falsy, instead received [Function anonymous]" `; exports[`.toBeTruthy(), .toBeFalsy() '{}' is truthy 1`] = ` -"expect(received).not.toBeTruthy() +"expect(received).not.toBeTruthy() Expected value not to be truthy, instead received {}" `; exports[`.toBeTruthy(), .toBeFalsy() '{}' is truthy 2`] = ` -"expect(received).toBeFalsy() +"expect(received).toBeFalsy() Expected value to be falsy, instead received {}" `; exports[`.toBeTruthy(), .toBeFalsy() '0' is falsy 1`] = ` -"expect(received).toBeTruthy() +"expect(received).toBeTruthy() Expected value to be truthy, instead received 0" `; exports[`.toBeTruthy(), .toBeFalsy() '0' is falsy 2`] = ` -"expect(received).not.toBeFalsy() +"expect(received).not.toBeFalsy() Expected value not to be falsy, instead received 0" `; exports[`.toBeTruthy(), .toBeFalsy() '0.5' is truthy 1`] = ` -"expect(received).not.toBeTruthy() +"expect(received).not.toBeTruthy() Expected value not to be truthy, instead received 0.5" `; exports[`.toBeTruthy(), .toBeFalsy() '0.5' is truthy 2`] = ` -"expect(received).toBeFalsy() +"expect(received).toBeFalsy() Expected value to be falsy, instead received 0.5" `; exports[`.toBeTruthy(), .toBeFalsy() '1' is truthy 1`] = ` -"expect(received).not.toBeTruthy() +"expect(received).not.toBeTruthy() Expected value not to be truthy, instead received 1" `; exports[`.toBeTruthy(), .toBeFalsy() '1' is truthy 2`] = ` -"expect(received).toBeFalsy() +"expect(received).toBeFalsy() Expected value to be falsy, instead received 1" `; exports[`.toBeTruthy(), .toBeFalsy() 'Infinity' is truthy 1`] = ` -"expect(received).not.toBeTruthy() +"expect(received).not.toBeTruthy() Expected value not to be truthy, instead received Infinity" `; exports[`.toBeTruthy(), .toBeFalsy() 'Infinity' is truthy 2`] = ` -"expect(received).toBeFalsy() +"expect(received).toBeFalsy() Expected value to be falsy, instead received Infinity" `; exports[`.toBeTruthy(), .toBeFalsy() 'Map {}' is truthy 1`] = ` -"expect(received).not.toBeTruthy() +"expect(received).not.toBeTruthy() Expected value not to be truthy, instead received Map {}" `; exports[`.toBeTruthy(), .toBeFalsy() 'Map {}' is truthy 2`] = ` -"expect(received).toBeFalsy() +"expect(received).toBeFalsy() Expected value to be falsy, instead received Map {}" `; exports[`.toBeTruthy(), .toBeFalsy() 'NaN' is falsy 1`] = ` -"expect(received).toBeTruthy() +"expect(received).toBeTruthy() Expected value to be truthy, instead received NaN" `; exports[`.toBeTruthy(), .toBeFalsy() 'NaN' is falsy 2`] = ` -"expect(received).not.toBeFalsy() +"expect(received).not.toBeFalsy() Expected value not to be falsy, instead received NaN" `; exports[`.toBeTruthy(), .toBeFalsy() 'false' is falsy 1`] = ` -"expect(received).toBeTruthy() +"expect(received).toBeTruthy() Expected value to be truthy, instead received false" `; exports[`.toBeTruthy(), .toBeFalsy() 'false' is falsy 2`] = ` -"expect(received).not.toBeFalsy() +"expect(received).not.toBeFalsy() Expected value not to be falsy, instead received false" `; exports[`.toBeTruthy(), .toBeFalsy() 'null' is falsy 1`] = ` -"expect(received).toBeTruthy() +"expect(received).toBeTruthy() Expected value to be truthy, instead received null" `; exports[`.toBeTruthy(), .toBeFalsy() 'null' is falsy 2`] = ` -"expect(received).not.toBeFalsy() +"expect(received).not.toBeFalsy() Expected value not to be falsy, instead received null" `; exports[`.toBeTruthy(), .toBeFalsy() 'true' is truthy 1`] = ` -"expect(received).not.toBeTruthy() +"expect(received).not.toBeTruthy() Expected value not to be truthy, instead received true" `; exports[`.toBeTruthy(), .toBeFalsy() 'true' is truthy 2`] = ` -"expect(received).toBeFalsy() +"expect(received).toBeFalsy() Expected value to be falsy, instead received true" `; exports[`.toBeTruthy(), .toBeFalsy() 'undefined' is falsy 1`] = ` -"expect(received).toBeTruthy() +"expect(received).toBeTruthy() Expected value to be truthy, instead received undefined" `; exports[`.toBeTruthy(), .toBeFalsy() 'undefined' is falsy 2`] = ` -"expect(received).not.toBeFalsy() +"expect(received).not.toBeFalsy() Expected value not to be falsy, instead received undefined" `; exports[`.toBeTruthy(), .toBeFalsy() does not accept arguments 1`] = ` -"expect(received)[.not].toBeTruthy() +"expect(received)[.not].toBeTruthy() Matcher does not accept any arguments. Got: null" `; exports[`.toBeTruthy(), .toBeFalsy() does not accept arguments 2`] = ` -"expect(received)[.not].toBeFalsy() +"expect(received)[.not].toBeFalsy() Matcher does not accept any arguments. Got: null" `; exports[`.toContain(), .toContainEqual() '"11112111"' contains '"2"' 1`] = ` -"expect(string).not.toContain(value) +"expect(string).not.toContain(value) Expected string: \\"11112111\\" @@ -1655,7 +1655,7 @@ Not to contain value: `; exports[`.toContain(), .toContainEqual() '"abcdef"' contains '"abc"' 1`] = ` -"expect(string).not.toContain(value) +"expect(string).not.toContain(value) Expected string: \\"abcdef\\" @@ -1665,7 +1665,7 @@ Not to contain value: `; exports[`.toContain(), .toContainEqual() '["a", "b", "c", "d"]' contains '"a"' 1`] = ` -"expect(array).not.toContain(value) +"expect(array).not.toContain(value) Expected array: [\\"a\\", \\"b\\", \\"c\\", \\"d\\"] @@ -1675,7 +1675,7 @@ Not to contain value: `; exports[`.toContain(), .toContainEqual() '["a", "b", "c", "d"]' contains a value equal to '"a"' 1`] = ` -"expect(array).not.toContainEqual(value) +"expect(array).not.toContainEqual(value) Expected array: [\\"a\\", \\"b\\", \\"c\\", \\"d\\"] @@ -1685,7 +1685,7 @@ Not to contain a value equal to: `; exports[`.toContain(), .toContainEqual() '[{"a": "b"}, {"a": "c"}]' contains a value equal to '{"a": "b"}' 1`] = ` -"expect(array).not.toContainEqual(value) +"expect(array).not.toContainEqual(value) Expected array: [{\\"a\\": \\"b\\"}, {\\"a\\": \\"c\\"}] @@ -1695,7 +1695,7 @@ Not to contain a value equal to: `; exports[`.toContain(), .toContainEqual() '[{"a": "b"}, {"a": "c"}]' does not contain a value equal to'{"a": "d"}' 1`] = ` -"expect(array).toContainEqual(value) +"expect(array).toContainEqual(value) Expected array: [{\\"a\\": \\"b\\"}, {\\"a\\": \\"c\\"}] @@ -1704,7 +1704,7 @@ To contain a value equal to: `; exports[`.toContain(), .toContainEqual() '[{}, []]' does not contain '[]' 1`] = ` -"expect(array).toContain(value) +"expect(array).toContain(value) Expected array: [{}, []] @@ -1713,7 +1713,7 @@ To contain value: `; exports[`.toContain(), .toContainEqual() '[{}, []]' does not contain '{}' 1`] = ` -"expect(array).toContain(value) +"expect(array).toContain(value) Expected array: [{}, []] @@ -1722,7 +1722,7 @@ To contain value: `; exports[`.toContain(), .toContainEqual() '[0, 1]' contains '1' 1`] = ` -"expect(object).not.toContain(value) +"expect(object).not.toContain(value) Expected object: [0, 1] @@ -1732,7 +1732,7 @@ Not to contain value: `; exports[`.toContain(), .toContainEqual() '[0, 1]' contains a value equal to '1' 1`] = ` -"expect(object).not.toContainEqual(value) +"expect(object).not.toContainEqual(value) Expected object: [0, 1] @@ -1742,7 +1742,7 @@ Not to contain a value equal to: `; exports[`.toContain(), .toContainEqual() '[1, 2, 3, 4]' contains '1' 1`] = ` -"expect(array).not.toContain(value) +"expect(array).not.toContain(value) Expected array: [1, 2, 3, 4] @@ -1752,7 +1752,7 @@ Not to contain value: `; exports[`.toContain(), .toContainEqual() '[1, 2, 3, 4]' contains a value equal to '1' 1`] = ` -"expect(array).not.toContainEqual(value) +"expect(array).not.toContainEqual(value) Expected array: [1, 2, 3, 4] @@ -1762,7 +1762,7 @@ Not to contain a value equal to: `; exports[`.toContain(), .toContainEqual() '[1, 2, 3]' does not contain '4' 1`] = ` -"expect(array).toContain(value) +"expect(array).toContain(value) Expected array: [1, 2, 3] @@ -1771,7 +1771,7 @@ To contain value: `; exports[`.toContain(), .toContainEqual() '[Symbol(a)]' contains 'Symbol(a)' 1`] = ` -"expect(array).not.toContain(value) +"expect(array).not.toContain(value) Expected array: [Symbol(a)] @@ -1781,7 +1781,7 @@ Not to contain value: `; exports[`.toContain(), .toContainEqual() '[Symbol(a)]' contains a value equal to 'Symbol(a)' 1`] = ` -"expect(array).not.toContainEqual(value) +"expect(array).not.toContainEqual(value) Expected array: [Symbol(a)] @@ -1791,7 +1791,7 @@ Not to contain a value equal to: `; exports[`.toContain(), .toContainEqual() '[null, undefined]' does not contain '1' 1`] = ` -"expect(array).toContain(value) +"expect(array).toContain(value) Expected array: [null, undefined] @@ -1800,7 +1800,7 @@ To contain value: `; exports[`.toContain(), .toContainEqual() '[undefined, null]' contains 'null' 1`] = ` -"expect(array).not.toContain(value) +"expect(array).not.toContain(value) Expected array: [undefined, null] @@ -1810,7 +1810,7 @@ Not to contain value: `; exports[`.toContain(), .toContainEqual() '[undefined, null]' contains 'undefined' 1`] = ` -"expect(array).not.toContain(value) +"expect(array).not.toContain(value) Expected array: [undefined, null] @@ -1820,7 +1820,7 @@ Not to contain value: `; exports[`.toContain(), .toContainEqual() '[undefined, null]' contains a value equal to 'null' 1`] = ` -"expect(array).not.toContainEqual(value) +"expect(array).not.toContainEqual(value) Expected array: [undefined, null] @@ -1830,7 +1830,7 @@ Not to contain a value equal to: `; exports[`.toContain(), .toContainEqual() '[undefined, null]' contains a value equal to 'undefined' 1`] = ` -"expect(array).not.toContainEqual(value) +"expect(array).not.toContainEqual(value) Expected array: [undefined, null] @@ -1840,7 +1840,7 @@ Not to contain a value equal to: `; exports[`.toContain(), .toContainEqual() 'Set {"abc", "def"}' contains '"abc"' 1`] = ` -"expect(set).not.toContain(value) +"expect(set).not.toContain(value) Expected set: Set {\\"abc\\", \\"def\\"} @@ -1850,7 +1850,7 @@ Not to contain value: `; exports[`.toContain(), .toContainEqual() 'Set {1, 2, 3, 4}' contains a value equal to '1' 1`] = ` -"expect(set).not.toContainEqual(value) +"expect(set).not.toContainEqual(value) Expected set: Set {1, 2, 3, 4} @@ -1860,21 +1860,21 @@ Not to contain a value equal to: `; exports[`.toContain(), .toContainEqual() error cases 1`] = ` -"expect(collection)[.not].toContainEqual(value) +"expect(collection)[.not].toContainEqual(value) Expected collection to be an array-like structure. Received: null" `; exports[`.toContain(), .toContainEqual() error cases for toContainEqual 1`] = ` -"expect(collection)[.not].toContainEqual(value) +"expect(collection)[.not].toContainEqual(value) Expected collection to be an array-like structure. Received: null" `; exports[`.toEqual() {pass: false} expect("Alice").not.toEqual({"asymmetricMatch": [Function asymmetricMatch]}) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: {\\"asymmetricMatch\\": [Function asymmetricMatch]} @@ -1883,7 +1883,7 @@ Received: `; exports[`.toEqual() {pass: false} expect("Eve").toEqual({"asymmetricMatch": [Function asymmetricMatch]}) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: {\\"asymmetricMatch\\": [Function asymmetricMatch]} @@ -1892,7 +1892,7 @@ Received: `; exports[`.toEqual() {pass: false} expect("abc").not.toEqual("abc") 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: \\"abc\\" @@ -1901,7 +1901,7 @@ Received: `; exports[`.toEqual() {pass: false} expect("abcd").not.toEqual(StringContaining "bc") 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: StringContaining \\"bc\\" @@ -1910,7 +1910,7 @@ Received: `; exports[`.toEqual() {pass: false} expect("abcd").not.toEqual(StringMatching /bc/) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: StringMatching /bc/ @@ -1919,7 +1919,7 @@ Received: `; exports[`.toEqual() {pass: false} expect("abd").toEqual(StringContaining "bc") 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: StringContaining \\"bc\\" @@ -1928,7 +1928,7 @@ Received: `; exports[`.toEqual() {pass: false} expect("abd").toEqual(StringMatching /bc/i) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: StringMatching /bc/i @@ -1937,7 +1937,7 @@ Received: `; exports[`.toEqual() {pass: false} expect("banana").toEqual("apple") 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: \\"apple\\" @@ -1946,7 +1946,7 @@ Received: `; exports[`.toEqual() {pass: false} expect([1, 2, 3]).not.toEqual(ArrayContaining [2, 3]) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: ArrayContaining [2, 3] @@ -1955,7 +1955,7 @@ Received: `; exports[`.toEqual() {pass: false} expect([1, 2]).not.toEqual([1, 2]) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: [1, 2] @@ -1964,7 +1964,7 @@ Received: `; exports[`.toEqual() {pass: false} expect([1, 2]).toEqual([2, 1]) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: [2, 1] @@ -1976,15 +1976,15 @@ Difference: - Expected + Received - Array [ + Array [ + 1, - 2, + 2, - 1, - ]" + ]" `; exports[`.toEqual() {pass: false} expect([1, 3]).toEqual(ArrayContaining [1, 2]) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: ArrayContaining [1, 2] @@ -1998,14 +1998,14 @@ Difference: - ArrayContaining [ + Array [ - 1, + 1, - 2, + 3, - ]" + ]" `; exports[`.toEqual() {pass: false} expect([1]).not.toEqual([1]) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: [1] @@ -2014,7 +2014,7 @@ Received: `; exports[`.toEqual() {pass: false} expect([1]).toEqual([2]) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: [2] @@ -2026,14 +2026,14 @@ Difference: - Expected + Received - Array [ + Array [ - 2, + 1, - ]" + ]" `; exports[`.toEqual() {pass: false} expect([Function anonymous]).not.toEqual(Any) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: Any @@ -2042,7 +2042,7 @@ Received: `; exports[`.toEqual() {pass: false} expect({"a": 1, "b": [Function b], "c": true}).not.toEqual({"a": 1, "b": Any, "c": Anything}) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: {\\"a\\": 1, \\"b\\": Any, \\"c\\": Anything} @@ -2051,7 +2051,7 @@ Received: `; exports[`.toEqual() {pass: false} expect({"a": 1, "b": 2}).not.toEqual(ObjectContaining {"a": 1}) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: ObjectContaining {\\"a\\": 1} @@ -2060,7 +2060,7 @@ Received: `; exports[`.toEqual() {pass: false} expect({"a": 1, "b": 2}).toEqual(ObjectContaining {"a": 2}) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: ObjectContaining {\\"a\\": 2} @@ -2077,11 +2077,11 @@ Difference: + Object { + \\"a\\": 1, + \\"b\\": 2, - }" + }" `; exports[`.toEqual() {pass: false} expect({"a": 5}).toEqual({"b": 6}) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: {\\"b\\": 6} @@ -2093,14 +2093,14 @@ Difference: - Expected + Received - Object { + Object { - \\"b\\": 6, + \\"a\\": 5, - }" + }" `; exports[`.toEqual() {pass: false} expect({"a": 99}).not.toEqual({"a": 99}) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: {\\"a\\": 99} @@ -2109,7 +2109,7 @@ Received: `; exports[`.toEqual() {pass: false} expect({}).not.toEqual({}) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: {} @@ -2118,7 +2118,7 @@ Received: `; exports[`.toEqual() {pass: false} expect(0).toEqual(-0) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: -0 @@ -2127,11 +2127,11 @@ Received: Difference: -Compared values have no visual difference." +Compared values have no visual difference." `; exports[`.toEqual() {pass: false} expect(1).not.toEqual(1) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: 1 @@ -2140,7 +2140,7 @@ Received: `; exports[`.toEqual() {pass: false} expect(1).toEqual(2) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: 2 @@ -2149,7 +2149,7 @@ Received: `; exports[`.toEqual() {pass: false} expect(1).toEqual(ArrayContaining [1, 2]) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: ArrayContaining [1, 2] @@ -2162,7 +2162,7 @@ Difference: `; exports[`.toEqual() {pass: false} expect(Map {"a" => 0}).toEqual(Map {"b" => 0}) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: Map {\\"b\\" => 0} @@ -2174,14 +2174,14 @@ Difference: - Expected + Received - Map { + Map { - \\"b\\" => 0, + \\"a\\" => 0, - }" + }" `; exports[`.toEqual() {pass: false} expect(Map {"v" => 1}).toEqual(Map {"v" => 2}) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: Map {\\"v\\" => 2} @@ -2193,14 +2193,14 @@ Difference: - Expected + Received - Map { + Map { - \\"v\\" => 2, + \\"v\\" => 1, - }" + }" `; exports[`.toEqual() {pass: false} expect(Map {}).not.toEqual(Map {}) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: Map {} @@ -2209,7 +2209,7 @@ Received: `; exports[`.toEqual() {pass: false} expect(Map {}).toEqual(Set {}) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: Set {} @@ -2222,7 +2222,7 @@ Difference: `; exports[`.toEqual() {pass: false} expect(Map {1 => "one", 2 => "two"}).not.toEqual(Map {1 => "one", 2 => "two"}) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: Map {1 => \\"one\\", 2 => \\"two\\"} @@ -2231,7 +2231,7 @@ Received: `; exports[`.toEqual() {pass: false} expect(Map {1 => "one", 2 => "two"}).not.toEqual(Map {2 => "two", 1 => "one"}) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: Map {2 => \\"two\\", 1 => \\"one\\"} @@ -2240,7 +2240,7 @@ Received: `; exports[`.toEqual() {pass: false} expect(Map {1 => "one", 2 => "two"}).toEqual(Map {1 => "one"}) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: Map {1 => \\"one\\"} @@ -2252,14 +2252,14 @@ Difference: - Expected + Received - Map { - 1 => \\"one\\", + Map { + 1 => \\"one\\", + 2 => \\"two\\", - }" + }" `; exports[`.toEqual() {pass: false} expect(Set {}).not.toEqual(Set {}) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: Set {} @@ -2268,7 +2268,7 @@ Received: `; exports[`.toEqual() {pass: false} expect(Set {1, 2}).not.toEqual(Set {1, 2}) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: Set {1, 2} @@ -2277,7 +2277,7 @@ Received: `; exports[`.toEqual() {pass: false} expect(Set {1, 2}).not.toEqual(Set {2, 1}) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: Set {2, 1} @@ -2286,7 +2286,7 @@ Received: `; exports[`.toEqual() {pass: false} expect(Set {1, 2}).toEqual(Set {}) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: Set {} @@ -2306,7 +2306,7 @@ Difference: `; exports[`.toEqual() {pass: false} expect(Set {1, 2}).toEqual(Set {1, 2, 3}) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: Set {1, 2, 3} @@ -2318,15 +2318,15 @@ Difference: - Expected + Received - Set { - 1, - 2, + Set { + 1, + 2, - 3, - }" + }" `; exports[`.toEqual() {pass: false} expect(false).toEqual(ObjectContaining {"a": 2}) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: ObjectContaining {\\"a\\": 2} @@ -2339,7 +2339,7 @@ Difference: `; exports[`.toEqual() {pass: false} expect(null).toEqual(undefined) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: undefined @@ -2352,7 +2352,7 @@ Difference: `; exports[`.toEqual() {pass: false} expect(true).not.toEqual(Anything) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: Anything @@ -2361,7 +2361,7 @@ Received: `; exports[`.toEqual() {pass: false} expect(true).not.toEqual(true) 1`] = ` -"expect(received).not.toEqual(expected) +"expect(received).not.toEqual(expected) Expected value to not equal: true @@ -2370,7 +2370,7 @@ Received: `; exports[`.toEqual() {pass: false} expect(true).toEqual(false) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: false @@ -2379,7 +2379,7 @@ Received: `; exports[`.toEqual() {pass: false} expect(undefined).toEqual(Any) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: Any @@ -2392,7 +2392,7 @@ Difference: `; exports[`.toEqual() {pass: false} expect(undefined).toEqual(Anything) 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: Anything @@ -2401,7 +2401,7 @@ Received: `; exports[`.toHaveLength {pass: false} expect("").toHaveLength(1) 1`] = ` -"expect(received).toHaveLength(length) +"expect(received).toHaveLength(length) Expected value to have length: 1 @@ -2412,7 +2412,7 @@ received.length: `; exports[`.toHaveLength {pass: false} expect("abc").toHaveLength(66) 1`] = ` -"expect(received).toHaveLength(length) +"expect(received).toHaveLength(length) Expected value to have length: 66 @@ -2423,7 +2423,7 @@ received.length: `; exports[`.toHaveLength {pass: false} expect(["a", "b"]).toHaveLength(99) 1`] = ` -"expect(received).toHaveLength(length) +"expect(received).toHaveLength(length) Expected value to have length: 99 @@ -2434,7 +2434,7 @@ received.length: `; exports[`.toHaveLength {pass: false} expect([]).toHaveLength(1) 1`] = ` -"expect(received).toHaveLength(length) +"expect(received).toHaveLength(length) Expected value to have length: 1 @@ -2445,7 +2445,7 @@ received.length: `; exports[`.toHaveLength {pass: false} expect([1, 2]).toHaveLength(3) 1`] = ` -"expect(received).toHaveLength(length) +"expect(received).toHaveLength(length) Expected value to have length: 3 @@ -2456,7 +2456,7 @@ received.length: `; exports[`.toHaveLength {pass: true} expect("").toHaveLength(0) 1`] = ` -"expect(received).not.toHaveLength(length) +"expect(received).not.toHaveLength(length) Expected value to not have length: 0 @@ -2467,7 +2467,7 @@ received.length: `; exports[`.toHaveLength {pass: true} expect("abc").toHaveLength(3) 1`] = ` -"expect(received).not.toHaveLength(length) +"expect(received).not.toHaveLength(length) Expected value to not have length: 3 @@ -2478,7 +2478,7 @@ received.length: `; exports[`.toHaveLength {pass: true} expect(["a", "b"]).toHaveLength(2) 1`] = ` -"expect(received).not.toHaveLength(length) +"expect(received).not.toHaveLength(length) Expected value to not have length: 2 @@ -2489,7 +2489,7 @@ received.length: `; exports[`.toHaveLength {pass: true} expect([]).toHaveLength(0) 1`] = ` -"expect(received).not.toHaveLength(length) +"expect(received).not.toHaveLength(length) Expected value to not have length: 0 @@ -2500,7 +2500,7 @@ received.length: `; exports[`.toHaveLength {pass: true} expect([1, 2]).toHaveLength(2) 1`] = ` -"expect(received).not.toHaveLength(length) +"expect(received).not.toHaveLength(length) Expected value to not have length: 2 @@ -2511,7 +2511,7 @@ received.length: `; exports[`.toHaveLength error cases 1`] = ` -"expect(received)[.not].toHaveLength(length) +"expect(received)[.not].toHaveLength(length) Expected value to have a 'length' property that is a number. Received: {\\"a\\": 9} @@ -2520,7 +2520,7 @@ received.length: `; exports[`.toHaveLength error cases 2`] = ` -"expect(received)[.not].toHaveLength(length) +"expect(received)[.not].toHaveLength(length) Expected value to have a 'length' property that is a number. Received: 0 @@ -2528,7 +2528,7 @@ Expected value to have a 'length' property that is a number. Received: `; exports[`.toHaveLength error cases 3`] = ` -"expect(received)[.not].toHaveLength(length) +"expect(received)[.not].toHaveLength(length) Expected value to have a 'length' property that is a number. Received: undefined @@ -2536,42 +2536,42 @@ Expected value to have a 'length' property that is a number. Received: `; exports[`.toHaveProperty() {error} expect({"a": {"b": {}}}).toHaveProperty('1') 1`] = ` -"expect(object)[.not].toHaveProperty(path) +"expect(object)[.not].toHaveProperty(path) Expected path to be a string. Received: number: 1" `; exports[`.toHaveProperty() {error} expect({"a": {"b": {}}}).toHaveProperty('null') 1`] = ` -"expect(object)[.not].toHaveProperty(path) +"expect(object)[.not].toHaveProperty(path) Expected path to be a string. Received: null: null" `; exports[`.toHaveProperty() {error} expect({"a": {"b": {}}}).toHaveProperty('undefined') 1`] = ` -"expect(object)[.not].toHaveProperty(path) +"expect(object)[.not].toHaveProperty(path) Expected path to be a string. Received: undefined: undefined" `; exports[`.toHaveProperty() {error} expect(null).toHaveProperty('a.b') 1`] = ` -"expect(object)[.not].toHaveProperty(path) +"expect(object)[.not].toHaveProperty(path) Expected object to be an object. Received: null: null" `; exports[`.toHaveProperty() {error} expect(undefined).toHaveProperty('a') 1`] = ` -"expect(object)[.not].toHaveProperty(path) +"expect(object)[.not].toHaveProperty(path) Expected object to be an object. Received: undefined: undefined" `; exports[`.toHaveProperty() {pass: false} expect("abc").toHaveProperty('a.b.c') 1`] = ` -"expect(object).toHaveProperty(path) +"expect(object).toHaveProperty(path) Expected the object: \\"abc\\" @@ -2581,7 +2581,7 @@ To have a nested property: `; exports[`.toHaveProperty() {pass: false} expect("abc").toHaveProperty('a.b.c', {"a": 5}) 1`] = ` -"expect(object).toHaveProperty(path, value) +"expect(object).toHaveProperty(path, value) Expected the object: \\"abc\\" @@ -2593,7 +2593,7 @@ With a value of: `; exports[`.toHaveProperty() {pass: false} expect({"a": {"b": {"c": {"d": 1}}}}).toHaveProperty('a.b.c.d', 2) 1`] = ` -"expect(object).toHaveProperty(path, value) +"expect(object).toHaveProperty(path, value) Expected the object: {\\"a\\": {\\"b\\": {\\"c\\": {\\"d\\": 1}}}} @@ -2606,7 +2606,7 @@ Received: `; exports[`.toHaveProperty() {pass: false} expect({"a": {"b": {"c": {"d": 1}}}}).toHaveProperty('a.b.ttt.d', 1) 1`] = ` -"expect(object).toHaveProperty(path, value) +"expect(object).toHaveProperty(path, value) Expected the object: {\\"a\\": {\\"b\\": {\\"c\\": {\\"d\\": 1}}}} @@ -2619,7 +2619,7 @@ Received: `; exports[`.toHaveProperty() {pass: false} expect({"a": {"b": {"c": {}}}}).toHaveProperty('a.b.c.d') 1`] = ` -"expect(object).toHaveProperty(path) +"expect(object).toHaveProperty(path) Expected the object: {\\"a\\": {\\"b\\": {\\"c\\": {}}}} @@ -2630,7 +2630,7 @@ Received: `; exports[`.toHaveProperty() {pass: false} expect({"a": {"b": {"c": {}}}}).toHaveProperty('a.b.c.d', 1) 1`] = ` -"expect(object).toHaveProperty(path, value) +"expect(object).toHaveProperty(path, value) Expected the object: {\\"a\\": {\\"b\\": {\\"c\\": {}}}} @@ -2643,7 +2643,7 @@ Received: `; exports[`.toHaveProperty() {pass: false} expect({"a": {"b": {"c": 5}}}).toHaveProperty('a.b', {"c": 4}) 1`] = ` -"expect(object).toHaveProperty(path, value) +"expect(object).toHaveProperty(path, value) Expected the object: {\\"a\\": {\\"b\\": {\\"c\\": 5}}} @@ -2659,14 +2659,14 @@ Difference: - Expected + Received - Object { + Object { - \\"c\\": 4, + \\"c\\": 5, - }" + }" `; exports[`.toHaveProperty() {pass: false} expect({"a": {"b": 3}}).toHaveProperty('a.b', undefined) 1`] = ` -"expect(object).toHaveProperty(path, value) +"expect(object).toHaveProperty(path, value) Expected the object: {\\"a\\": {\\"b\\": 3}} @@ -2683,7 +2683,7 @@ Difference: `; exports[`.toHaveProperty() {pass: false} expect({"a": 1}).toHaveProperty('a.b.c.d') 1`] = ` -"expect(object).toHaveProperty(path) +"expect(object).toHaveProperty(path) Expected the object: {\\"a\\": 1} @@ -2694,7 +2694,7 @@ Received: `; exports[`.toHaveProperty() {pass: false} expect({"a": 1}).toHaveProperty('a.b.c.d', 5) 1`] = ` -"expect(object).toHaveProperty(path, value) +"expect(object).toHaveProperty(path, value) Expected the object: {\\"a\\": 1} @@ -2707,7 +2707,7 @@ Received: `; exports[`.toHaveProperty() {pass: false} expect({}).toHaveProperty('a') 1`] = ` -"expect(object).toHaveProperty(path) +"expect(object).toHaveProperty(path) Expected the object: {} @@ -2717,7 +2717,7 @@ To have a nested property: `; exports[`.toHaveProperty() {pass: false} expect({}).toHaveProperty('a', "test") 1`] = ` -"expect(object).toHaveProperty(path, value) +"expect(object).toHaveProperty(path, value) Expected the object: {} @@ -2729,7 +2729,7 @@ With a value of: `; exports[`.toHaveProperty() {pass: false} expect(1).toHaveProperty('a.b.c') 1`] = ` -"expect(object).toHaveProperty(path) +"expect(object).toHaveProperty(path) Expected the object: 1 @@ -2739,7 +2739,7 @@ To have a nested property: `; exports[`.toHaveProperty() {pass: false} expect(1).toHaveProperty('a.b.c', "test") 1`] = ` -"expect(object).toHaveProperty(path, value) +"expect(object).toHaveProperty(path, value) Expected the object: 1 @@ -2751,7 +2751,7 @@ With a value of: `; exports[`.toHaveProperty() {pass: true} expect({"a": {"b": {"c": {"d": 1}}}}).toHaveProperty('a.b.c.d')' 1`] = ` -"expect(object).not.toHaveProperty(path) +"expect(object).not.toHaveProperty(path) Expected the object: {\\"a\\": {\\"b\\": {\\"c\\": {\\"d\\": 1}}}} @@ -2761,7 +2761,7 @@ Not to have a nested property: `; exports[`.toHaveProperty() {pass: true} expect({"a": {"b": {"c": {"d": 1}}}}).toHaveProperty('a.b.c.d', 1) 1`] = ` -"expect(object).not.toHaveProperty(path, value) +"expect(object).not.toHaveProperty(path, value) Expected the object: {\\"a\\": {\\"b\\": {\\"c\\": {\\"d\\": 1}}}} @@ -2773,7 +2773,7 @@ With a value of: `; exports[`.toHaveProperty() {pass: true} expect({"a": {"b": {"c": 5}}}).toHaveProperty('a.b', {"c": 5}) 1`] = ` -"expect(object).not.toHaveProperty(path, value) +"expect(object).not.toHaveProperty(path, value) Expected the object: {\\"a\\": {\\"b\\": {\\"c\\": 5}}} @@ -2785,7 +2785,7 @@ With a value of: `; exports[`.toHaveProperty() {pass: true} expect({"a": {"b": undefined}}).toHaveProperty('a.b')' 1`] = ` -"expect(object).not.toHaveProperty(path) +"expect(object).not.toHaveProperty(path) Expected the object: {\\"a\\": {\\"b\\": undefined}} @@ -2795,7 +2795,7 @@ Not to have a nested property: `; exports[`.toHaveProperty() {pass: true} expect({"a": {"b": undefined}}).toHaveProperty('a.b', undefined) 1`] = ` -"expect(object).not.toHaveProperty(path, value) +"expect(object).not.toHaveProperty(path, value) Expected the object: {\\"a\\": {\\"b\\": undefined}} @@ -2807,7 +2807,7 @@ With a value of: `; exports[`.toHaveProperty() {pass: true} expect({"a": 0}).toHaveProperty('a')' 1`] = ` -"expect(object).not.toHaveProperty(path) +"expect(object).not.toHaveProperty(path) Expected the object: {\\"a\\": 0} @@ -2817,7 +2817,7 @@ Not to have a nested property: `; exports[`.toHaveProperty() {pass: true} expect({"a": 0}).toHaveProperty('a', 0) 1`] = ` -"expect(object).not.toHaveProperty(path, value) +"expect(object).not.toHaveProperty(path, value) Expected the object: {\\"a\\": 0} @@ -2829,7 +2829,7 @@ With a value of: `; exports[`.toHaveProperty() {pass: true} expect({"property": 1}).toHaveProperty('property', 1) 1`] = ` -"expect(object).not.toHaveProperty(path, value) +"expect(object).not.toHaveProperty(path, value) Expected the object: {\\"property\\": 1} @@ -2841,7 +2841,7 @@ With a value of: `; exports[`.toMatch() {pass: true} expect(Foo bar).toMatch(/^foo/i) 1`] = ` -"expect(received).not.toMatch(expected) +"expect(received).not.toMatch(expected) Expected value not to match: /^foo/i @@ -2850,7 +2850,7 @@ Received: `; exports[`.toMatch() {pass: true} expect(foo).toMatch(foo) 1`] = ` -"expect(received).not.toMatch(expected) +"expect(received).not.toMatch(expected) Expected value not to match: \\"foo\\" @@ -2859,7 +2859,7 @@ Received: `; exports[`.toMatch() throws if non String actual value passed: [/foo/i, "foo"] 1`] = ` -"expect(string)[.not].toMatch(expected) +"expect(string)[.not].toMatch(expected) string value must be a string. Received: @@ -2867,7 +2867,7 @@ Received: `; exports[`.toMatch() throws if non String actual value passed: [[], "foo"] 1`] = ` -"expect(string)[.not].toMatch(expected) +"expect(string)[.not].toMatch(expected) string value must be a string. Received: @@ -2875,7 +2875,7 @@ Received: `; exports[`.toMatch() throws if non String actual value passed: [[Function anonymous], "foo"] 1`] = ` -"expect(string)[.not].toMatch(expected) +"expect(string)[.not].toMatch(expected) string value must be a string. Received: @@ -2883,7 +2883,7 @@ Received: `; exports[`.toMatch() throws if non String actual value passed: [{}, "foo"] 1`] = ` -"expect(string)[.not].toMatch(expected) +"expect(string)[.not].toMatch(expected) string value must be a string. Received: @@ -2891,7 +2891,7 @@ Received: `; exports[`.toMatch() throws if non String actual value passed: [1, "foo"] 1`] = ` -"expect(string)[.not].toMatch(expected) +"expect(string)[.not].toMatch(expected) string value must be a string. Received: @@ -2899,7 +2899,7 @@ Received: `; exports[`.toMatch() throws if non String actual value passed: [true, "foo"] 1`] = ` -"expect(string)[.not].toMatch(expected) +"expect(string)[.not].toMatch(expected) string value must be a string. Received: @@ -2907,14 +2907,14 @@ Received: `; exports[`.toMatch() throws if non String actual value passed: [undefined, "foo"] 1`] = ` -"expect(string)[.not].toMatch(expected) +"expect(string)[.not].toMatch(expected) string value must be a string. Received: undefined" `; exports[`.toMatch() throws if non String/RegExp expected value passed: ["foo", []] 1`] = ` -"expect(string)[.not].toMatch(expected) +"expect(string)[.not].toMatch(expected) expected value must be a string or a regular expression. Expected: @@ -2922,7 +2922,7 @@ Expected: `; exports[`.toMatch() throws if non String/RegExp expected value passed: ["foo", [Function anonymous]] 1`] = ` -"expect(string)[.not].toMatch(expected) +"expect(string)[.not].toMatch(expected) expected value must be a string or a regular expression. Expected: @@ -2930,7 +2930,7 @@ Expected: `; exports[`.toMatch() throws if non String/RegExp expected value passed: ["foo", {}] 1`] = ` -"expect(string)[.not].toMatch(expected) +"expect(string)[.not].toMatch(expected) expected value must be a string or a regular expression. Expected: @@ -2938,7 +2938,7 @@ Expected: `; exports[`.toMatch() throws if non String/RegExp expected value passed: ["foo", 1] 1`] = ` -"expect(string)[.not].toMatch(expected) +"expect(string)[.not].toMatch(expected) expected value must be a string or a regular expression. Expected: @@ -2946,7 +2946,7 @@ Expected: `; exports[`.toMatch() throws if non String/RegExp expected value passed: ["foo", true] 1`] = ` -"expect(string)[.not].toMatch(expected) +"expect(string)[.not].toMatch(expected) expected value must be a string or a regular expression. Expected: @@ -2954,14 +2954,14 @@ Expected: `; exports[`.toMatch() throws if non String/RegExp expected value passed: ["foo", undefined] 1`] = ` -"expect(string)[.not].toMatch(expected) +"expect(string)[.not].toMatch(expected) expected value must be a string or a regular expression. Expected: undefined" `; exports[`.toMatch() throws: [bar, /foo/] 1`] = ` -"expect(received).toMatch(expected) +"expect(received).toMatch(expected) Expected value to match: /foo/ @@ -2970,7 +2970,7 @@ Received: `; exports[`.toMatch() throws: [bar, foo] 1`] = ` -"expect(received).toMatch(expected) +"expect(received).toMatch(expected) Expected value to match: \\"foo\\" @@ -2979,7 +2979,7 @@ Received: `; exports[`toMatchObject() {pass: false} expect([0]).toMatchObject([-0]) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: [-0] @@ -2989,14 +2989,14 @@ Difference: - Expected + Received - Array [ + Array [ - -0, + 0, - ]" + ]" `; exports[`toMatchObject() {pass: false} expect([1, 2, 3]).toMatchObject([1, 2, 2]) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: [1, 2, 2] @@ -3006,16 +3006,16 @@ Difference: - Expected + Received - Array [ - 1, - 2, + Array [ + 1, + 2, - 2, + 3, - ]" + ]" `; exports[`toMatchObject() {pass: false} expect([1, 2, 3]).toMatchObject([2, 3, 1]) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: [2, 3, 1] @@ -3025,16 +3025,16 @@ Difference: - Expected + Received - Array [ + Array [ + 1, - 2, - 3, + 2, + 3, - 1, - ]" + ]" `; exports[`toMatchObject() {pass: false} expect([1, 2]).toMatchObject([1, 3]) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: [1, 3] @@ -3044,15 +3044,15 @@ Difference: - Expected + Received - Array [ - 1, + Array [ + 1, - 3, + 2, - ]" + ]" `; exports[`toMatchObject() {pass: false} expect([Error: foo]).toMatchObject([Error: bar]) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: [Error: bar] @@ -3067,7 +3067,7 @@ Difference: `; exports[`toMatchObject() {pass: false} expect({"a": "a", "c": "d"}).toMatchObject({"a": Any}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"a\\": Any} @@ -3077,14 +3077,14 @@ Difference: - Expected + Received - Object { + Object { - \\"a\\": Any, + \\"a\\": \\"a\\", - }" + }" `; exports[`toMatchObject() {pass: false} expect({"a": "b", "c": "d"}).toMatchObject({"a": "b!", "c": "d"}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"a\\": \\"b!\\", \\"c\\": \\"d\\"} @@ -3094,15 +3094,15 @@ Difference: - Expected + Received - Object { + Object { - \\"a\\": \\"b!\\", + \\"a\\": \\"b\\", - \\"c\\": \\"d\\", - }" + \\"c\\": \\"d\\", + }" `; exports[`toMatchObject() {pass: false} expect({"a": "b", "c": "d"}).toMatchObject({"e": "b"}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"e\\": \\"b\\"} @@ -3112,15 +3112,15 @@ Difference: - Expected + Received - Object { + Object { - \\"e\\": \\"b\\", + \\"a\\": \\"b\\", + \\"c\\": \\"d\\", - }" + }" `; exports[`toMatchObject() {pass: false} expect({"a": "b", "t": {"x": {"r": "r"}, "z": "z"}}).toMatchObject({"a": "b", "t": {"z": [3]}}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"a\\": \\"b\\", \\"t\\": {\\"z\\": [3]}} @@ -3130,19 +3130,19 @@ Difference: - Expected + Received - Object { - \\"a\\": \\"b\\", - \\"t\\": Object { + Object { + \\"a\\": \\"b\\", + \\"t\\": Object { - \\"z\\": Array [ - 3, - ], + \\"z\\": \\"z\\", - }, - }" + }, + }" `; exports[`toMatchObject() {pass: false} expect({"a": "b", "t": {"x": {"r": "r"}, "z": "z"}}).toMatchObject({"t": {"l": {"r": "r"}}}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"t\\": {\\"l\\": {\\"r\\": \\"r\\"}}} @@ -3152,19 +3152,19 @@ Difference: - Expected + Received - Object { - \\"t\\": Object { + Object { + \\"t\\": Object { - \\"l\\": Object { + \\"x\\": Object { - \\"r\\": \\"r\\", - }, + \\"r\\": \\"r\\", + }, + \\"z\\": \\"z\\", - }, - }" + }, + }" `; exports[`toMatchObject() {pass: false} expect({"a": [{"a": "a", "b": "b"}]}).toMatchObject({"a": [{"a": "c"}]}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"a\\": [{\\"a\\": \\"c\\"}]} @@ -3174,18 +3174,18 @@ Difference: - Expected + Received - Object { - \\"a\\": Array [ - Object { + Object { + \\"a\\": Array [ + Object { - \\"a\\": \\"c\\", + \\"a\\": \\"a\\", - }, - ], - }" + }, + ], + }" `; exports[`toMatchObject() {pass: false} expect({"a": [3, 4, "v"], "b": "b"}).toMatchObject({"a": ["v"]}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"a\\": [\\"v\\"]} @@ -3195,17 +3195,17 @@ Difference: - Expected + Received - Object { - \\"a\\": Array [ + Object { + \\"a\\": Array [ + 3, + 4, - \\"v\\", - ], - }" + \\"v\\", + ], + }" `; exports[`toMatchObject() {pass: false} expect({"a": [3, 4, 5], "b": "b"}).toMatchObject({"a": [3, 4, 5, 6]}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"a\\": [3, 4, 5, 6]} @@ -3215,18 +3215,18 @@ Difference: - Expected + Received - Object { - \\"a\\": Array [ - 3, - 4, - 5, + Object { + \\"a\\": Array [ + 3, + 4, + 5, - 6, - ], - }" + ], + }" `; exports[`toMatchObject() {pass: false} expect({"a": [3, 4, 5], "b": "b"}).toMatchObject({"a": [3, 4]}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"a\\": [3, 4]} @@ -3236,17 +3236,17 @@ Difference: - Expected + Received - Object { - \\"a\\": Array [ - 3, - 4, + Object { + \\"a\\": Array [ + 3, + 4, + 5, - ], - }" + ], + }" `; exports[`toMatchObject() {pass: false} expect({"a": [3, 4, 5], "b": "b"}).toMatchObject({"a": {"b": 4}}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"a\\": {\\"b\\": 4}} @@ -3256,7 +3256,7 @@ Difference: - Expected + Received - Object { + Object { - \\"a\\": Object { - \\"b\\": 4, - }, @@ -3265,11 +3265,11 @@ Difference: + 4, + 5, + ], - }" + }" `; exports[`toMatchObject() {pass: false} expect({"a": [3, 4, 5], "b": "b"}).toMatchObject({"a": {"b": Any}}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"a\\": {\\"b\\": Any}} @@ -3279,7 +3279,7 @@ Difference: - Expected + Received - Object { + Object { - \\"a\\": Object { - \\"b\\": Any, - }, @@ -3288,11 +3288,11 @@ Difference: + 4, + 5, + ], - }" + }" `; exports[`toMatchObject() {pass: false} expect({"a": 1, "b": 1, "c": 1, "d": {"e": {"f": 555}}}).toMatchObject({"d": {"e": {"f": 222}}}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"d\\": {\\"e\\": {\\"f\\": 222}}} @@ -3302,18 +3302,18 @@ Difference: - Expected + Received - Object { - \\"d\\": Object { - \\"e\\": Object { + Object { + \\"d\\": Object { + \\"e\\": Object { - \\"f\\": 222, + \\"f\\": 555, - }, - }, - }" + }, + }, + }" `; exports[`toMatchObject() {pass: false} expect({"a": 2015-11-30T00:00:00.000Z, "b": "b"}).toMatchObject({"a": 2015-10-10T00:00:00.000Z}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"a\\": 2015-10-10T00:00:00.000Z} @@ -3323,14 +3323,14 @@ Difference: - Expected + Received - Object { + Object { - \\"a\\": 2015-10-10T00:00:00.000Z, + \\"a\\": 2015-11-30T00:00:00.000Z, - }" + }" `; exports[`toMatchObject() {pass: false} expect({"a": null, "b": "b"}).toMatchObject({"a": "4"}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"a\\": \\"4\\"} @@ -3340,14 +3340,14 @@ Difference: - Expected + Received - Object { + Object { - \\"a\\": \\"4\\", + \\"a\\": null, - }" + }" `; exports[`toMatchObject() {pass: false} expect({"a": null, "b": "b"}).toMatchObject({"a": undefined}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"a\\": undefined} @@ -3357,14 +3357,14 @@ Difference: - Expected + Received - Object { + Object { - \\"a\\": undefined, + \\"a\\": null, - }" + }" `; exports[`toMatchObject() {pass: false} expect({"a": undefined}).toMatchObject({"a": null}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"a\\": null} @@ -3374,14 +3374,14 @@ Difference: - Expected + Received - Object { + Object { - \\"a\\": null, + \\"a\\": undefined, - }" + }" `; exports[`toMatchObject() {pass: false} expect({}).toMatchObject({"a": undefined}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: {\\"a\\": undefined} @@ -3398,7 +3398,7 @@ Difference: `; exports[`toMatchObject() {pass: false} expect(2015-11-30T00:00:00.000Z).toMatchObject(2015-10-10T00:00:00.000Z) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: 2015-10-10T00:00:00.000Z @@ -3413,7 +3413,7 @@ Difference: `; exports[`toMatchObject() {pass: false} expect(Set {1, 2}).toMatchObject(Set {2}) 1`] = ` -"expect(received).toMatchObject(expected) +"expect(received).toMatchObject(expected) Expected value to match object: Set {2} @@ -3423,14 +3423,14 @@ Difference: - Expected + Received - Set { + Set { + 1, - 2, - }" + 2, + }" `; exports[`toMatchObject() {pass: true} expect([]).toMatchObject([]) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: [] @@ -3439,7 +3439,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect([1, 2]).toMatchObject([1, 2]) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: [1, 2] @@ -3448,7 +3448,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect([Error: foo]).toMatchObject([Error: foo]) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: [Error: foo] @@ -3457,7 +3457,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect({"a": "b", "c": "d"}).toMatchObject({"a": "b", "c": "d"}) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: {\\"a\\": \\"b\\", \\"c\\": \\"d\\"} @@ -3466,7 +3466,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect({"a": "b", "c": "d"}).toMatchObject({"a": "b"}) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: {\\"a\\": \\"b\\"} @@ -3475,7 +3475,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect({"a": "b", "t": {"x": {"r": "r"}, "z": "z"}}).toMatchObject({"a": "b", "t": {"z": "z"}}) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: {\\"a\\": \\"b\\", \\"t\\": {\\"z\\": \\"z\\"}} @@ -3484,7 +3484,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect({"a": "b", "t": {"x": {"r": "r"}, "z": "z"}}).toMatchObject({"t": {"x": {"r": "r"}}}) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: {\\"t\\": {\\"x\\": {\\"r\\": \\"r\\"}}} @@ -3493,7 +3493,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect({"a": [{"a": "a", "b": "b"}]}).toMatchObject({"a": [{"a": "a"}]}) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: {\\"a\\": [{\\"a\\": \\"a\\"}]} @@ -3502,7 +3502,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect({"a": [3, 4, 5, "v"], "b": "b"}).toMatchObject({"a": [3, 4, 5, "v"]}) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: {\\"a\\": [3, 4, 5, \\"v\\"]} @@ -3511,7 +3511,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect({"a": [3, 4, 5], "b": "b"}).toMatchObject({"a": [3, 4, 5]}) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: {\\"a\\": [3, 4, 5]} @@ -3520,7 +3520,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect({"a": {"x": "x", "y": "y"}}).toMatchObject({"a": {"x": Any}}) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: {\\"a\\": {\\"x\\": Any}} @@ -3529,7 +3529,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect({"a": 1, "c": 2}).toMatchObject({"a": Any}) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: {\\"a\\": Any} @@ -3538,7 +3538,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect({"a": 2015-11-30T00:00:00.000Z, "b": "b"}).toMatchObject({"a": 2015-11-30T00:00:00.000Z}) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: {\\"a\\": 2015-11-30T00:00:00.000Z} @@ -3547,7 +3547,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect({"a": null, "b": "b"}).toMatchObject({"a": null}) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: {\\"a\\": null} @@ -3556,7 +3556,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect({"a": undefined, "b": "b"}).toMatchObject({"a": undefined}) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: {\\"a\\": undefined} @@ -3565,7 +3565,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect({"a": undefined}).toMatchObject({"a": undefined}) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: {\\"a\\": undefined} @@ -3574,7 +3574,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect(2015-11-30T00:00:00.000Z).toMatchObject(2015-11-30T00:00:00.000Z) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: 2015-11-30T00:00:00.000Z @@ -3583,7 +3583,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect(Set {1, 2}).toMatchObject(Set {1, 2}) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: Set {1, 2} @@ -3592,7 +3592,7 @@ Received: `; exports[`toMatchObject() {pass: true} expect(Set {1, 2}).toMatchObject(Set {2, 1}) 1`] = ` -"expect(received).not.toMatchObject(expected) +"expect(received).not.toMatchObject(expected) Expected value not to match object: Set {2, 1} @@ -3601,7 +3601,7 @@ Received: `; exports[`toMatchObject() throws expect("44").toMatchObject({}) 1`] = ` -"expect(object)[.not].toMatchObject(expected) +"expect(object)[.not].toMatchObject(expected) received value must be an object. Received: @@ -3609,7 +3609,7 @@ Received: `; exports[`toMatchObject() throws expect({}).toMatchObject("some string") 1`] = ` -"expect(object)[.not].toMatchObject(expected) +"expect(object)[.not].toMatchObject(expected) expected value must be an object. Expected: @@ -3617,7 +3617,7 @@ Expected: `; exports[`toMatchObject() throws expect({}).toMatchObject(4) 1`] = ` -"expect(object)[.not].toMatchObject(expected) +"expect(object)[.not].toMatchObject(expected) expected value must be an object. Expected: @@ -3625,14 +3625,14 @@ Expected: `; exports[`toMatchObject() throws expect({}).toMatchObject(null) 1`] = ` -"expect(object)[.not].toMatchObject(expected) +"expect(object)[.not].toMatchObject(expected) expected value must be an object. Expected: null" `; exports[`toMatchObject() throws expect({}).toMatchObject(true) 1`] = ` -"expect(object)[.not].toMatchObject(expected) +"expect(object)[.not].toMatchObject(expected) expected value must be an object. Expected: @@ -3640,14 +3640,14 @@ Expected: `; exports[`toMatchObject() throws expect({}).toMatchObject(undefined) 1`] = ` -"expect(object)[.not].toMatchObject(expected) +"expect(object)[.not].toMatchObject(expected) expected value must be an object. Expected: undefined" `; exports[`toMatchObject() throws expect(4).toMatchObject({}) 1`] = ` -"expect(object)[.not].toMatchObject(expected) +"expect(object)[.not].toMatchObject(expected) received value must be an object. Received: @@ -3655,14 +3655,14 @@ Received: `; exports[`toMatchObject() throws expect(null).toMatchObject({}) 1`] = ` -"expect(object)[.not].toMatchObject(expected) +"expect(object)[.not].toMatchObject(expected) received value must be an object. Received: null" `; exports[`toMatchObject() throws expect(true).toMatchObject({}) 1`] = ` -"expect(object)[.not].toMatchObject(expected) +"expect(object)[.not].toMatchObject(expected) received value must be an object. Received: @@ -3670,7 +3670,7 @@ Received: `; exports[`toMatchObject() throws expect(undefined).toMatchObject({}) 1`] = ` -"expect(object)[.not].toMatchObject(expected) +"expect(object)[.not].toMatchObject(expected) received value must be an object. Received: undefined" diff --git a/packages/expect/src/__tests__/__snapshots__/spy_matchers.test.js.snap b/packages/expect/src/__tests__/__snapshots__/spy_matchers.test.js.snap index 7d1c41967f82..65e5ae9dd4bc 100644 --- a/packages/expect/src/__tests__/__snapshots__/spy_matchers.test.js.snap +++ b/packages/expect/src/__tests__/__snapshots__/spy_matchers.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`lastCalledWith works only on spies or jest.fn 1`] = ` -"expect(jest.fn())[.not].lastCalledWith() +"expect(jest.fn())[.not].lastCalledWith() jest.fn() value must be a mock function or spy. Received: @@ -9,7 +9,7 @@ Received: `; exports[`lastCalledWith works when not called 1`] = ` -"expect(jest.fn()).lastCalledWith(expected) +"expect(jest.fn()).lastCalledWith(expected) Expected mock function to have been last called with: [\\"foo\\", \\"bar\\"] @@ -17,70 +17,70 @@ But it was not called." `; exports[`lastCalledWith works with Immutable.js objects 1`] = ` -"expect(jest.fn()).not.lastCalledWith(expected) +"expect(jest.fn()).not.lastCalledWith(expected) Expected mock function to not have been last called with: [Immutable.Map {\\"a\\": {\\"b\\": \\"c\\"}}, Immutable.Map {\\"a\\": {\\"b\\": \\"c\\"}}]" `; exports[`lastCalledWith works with Map 1`] = ` -"expect(jest.fn()).not.lastCalledWith(expected) +"expect(jest.fn()).not.lastCalledWith(expected) Expected mock function to not have been last called with: [Map {1 => 2, 2 => 1}]" `; exports[`lastCalledWith works with Map 2`] = ` -"expect(jest.fn()).lastCalledWith(expected) +"expect(jest.fn()).lastCalledWith(expected) Expected mock function to have been last called with: Map {\\"a\\" => \\"b\\", \\"b\\" => \\"a\\"} as argument 1, but it was called with Map {1 => 2, 2 => 1}." `; exports[`lastCalledWith works with Set 1`] = ` -"expect(jest.fn()).not.lastCalledWith(expected) +"expect(jest.fn()).not.lastCalledWith(expected) Expected mock function to not have been last called with: [Set {1, 2}]" `; exports[`lastCalledWith works with Set 2`] = ` -"expect(jest.fn()).lastCalledWith(expected) +"expect(jest.fn()).lastCalledWith(expected) Expected mock function to have been last called with: Set {3, 4} as argument 1, but it was called with Set {1, 2}." `; exports[`lastCalledWith works with arguments that don't match 1`] = ` -"expect(jest.fn()).lastCalledWith(expected) +"expect(jest.fn()).lastCalledWith(expected) Expected mock function to have been last called with: \\"bar\\" as argument 2, but it was called with \\"bar1\\"." `; exports[`lastCalledWith works with arguments that match 1`] = ` -"expect(jest.fn()).not.lastCalledWith(expected) +"expect(jest.fn()).not.lastCalledWith(expected) Expected mock function to not have been last called with: [\\"foo\\", \\"bar\\"]" `; exports[`lastCalledWith works with many arguments 1`] = ` -"expect(jest.fn()).not.lastCalledWith(expected) +"expect(jest.fn()).not.lastCalledWith(expected) Expected mock function to not have been last called with: [\\"foo\\", \\"bar\\"]" `; exports[`lastCalledWith works with many arguments that don't match 1`] = ` -"expect(jest.fn()).lastCalledWith(expected) +"expect(jest.fn()).lastCalledWith(expected) Expected mock function to have been last called with: \\"bar\\" as argument 2, but it was called with \\"bar3\\"." `; exports[`toBeCalled works only on spies or jest.fn 1`] = ` -"expect(jest.fn())[.not].toBeCalled() +"expect(jest.fn())[.not].toBeCalled() jest.fn() value must be a mock function or spy. Received: @@ -88,20 +88,20 @@ Received: `; exports[`toBeCalled works with jest.fn 1`] = ` -"expect(jest.fn()).toBeCalled() +"expect(jest.fn()).toBeCalled() Expected mock function to have been called." `; exports[`toBeCalled works with jest.fn 2`] = ` -"expect(jest.fn()).not.toBeCalled() +"expect(jest.fn()).not.toBeCalled() Expected mock function not to be called but it was called with: []" `; exports[`toBeCalled works with jest.fn 3`] = ` -"expect(received)[.not].toBeCalled() +"expect(received)[.not].toBeCalled() Matcher does not accept any arguments. Got: @@ -109,7 +109,7 @@ Got: `; exports[`toBeCalledWith works only on spies or jest.fn 1`] = ` -"expect(jest.fn())[.not].toBeCalledWith() +"expect(jest.fn())[.not].toBeCalledWith() jest.fn() value must be a mock function or spy. Received: @@ -117,7 +117,7 @@ Received: `; exports[`toHaveBeenCalled works only on spies or jest.fn 1`] = ` -"expect(jest.fn())[.not].toHaveBeenCalled() +"expect(jest.fn())[.not].toHaveBeenCalled() jest.fn() value must be a mock function or spy. Received: @@ -125,20 +125,20 @@ Received: `; exports[`toHaveBeenCalled works with jest.fn 1`] = ` -"expect(jest.fn()).toHaveBeenCalled() +"expect(jest.fn()).toHaveBeenCalled() Expected mock function to have been called." `; exports[`toHaveBeenCalled works with jest.fn 2`] = ` -"expect(jest.fn()).not.toHaveBeenCalled() +"expect(jest.fn()).not.toHaveBeenCalled() Expected mock function not to be called but it was called with: []" `; exports[`toHaveBeenCalled works with jest.fn 3`] = ` -"expect(received)[.not].toHaveBeenCalled() +"expect(received)[.not].toHaveBeenCalled() Matcher does not accept any arguments. Got: @@ -146,7 +146,7 @@ Got: `; exports[`toHaveBeenCalledTimes accepts only numbers 1`] = ` -"expect(received)[.not].toHaveBeenCalledTimes(expected) +"expect(received)[.not].toHaveBeenCalledTimes(expected) Expected value must be a number. Got: @@ -154,7 +154,7 @@ Got: `; exports[`toHaveBeenCalledTimes accepts only numbers 2`] = ` -"expect(received)[.not].toHaveBeenCalledTimes(expected) +"expect(received)[.not].toHaveBeenCalledTimes(expected) Expected value must be a number. Got: @@ -162,7 +162,7 @@ Got: `; exports[`toHaveBeenCalledTimes accepts only numbers 3`] = ` -"expect(received)[.not].toHaveBeenCalledTimes(expected) +"expect(received)[.not].toHaveBeenCalledTimes(expected) Expected value must be a number. Got: @@ -170,7 +170,7 @@ Got: `; exports[`toHaveBeenCalledTimes accepts only numbers 4`] = ` -"expect(received)[.not].toHaveBeenCalledTimes(expected) +"expect(received)[.not].toHaveBeenCalledTimes(expected) Expected value must be a number. Got: @@ -178,7 +178,7 @@ Got: `; exports[`toHaveBeenCalledTimes accepts only numbers 5`] = ` -"expect(received)[.not].toHaveBeenCalledTimes(expected) +"expect(received)[.not].toHaveBeenCalledTimes(expected) Expected value must be a number. Got: @@ -186,7 +186,7 @@ Got: `; exports[`toHaveBeenCalledTimes accepts only numbers 6`] = ` -"expect(received)[.not].toHaveBeenCalledTimes(expected) +"expect(received)[.not].toHaveBeenCalledTimes(expected) Expected value must be a number. Got: @@ -194,25 +194,25 @@ Got: `; exports[`toHaveBeenCalledTimes fails if function called less than expected times 1`] = ` -"expect(jest.fn()).toHaveBeenCalledTimes(2) +"expect(jest.fn()).toHaveBeenCalledTimes(2) Expected mock function to have been called two times, but it was called one time." `; exports[`toHaveBeenCalledTimes fails if function called more than expected times 1`] = ` -"expect(jest.fn()).toHaveBeenCalledTimes(2) +"expect(jest.fn()).toHaveBeenCalledTimes(2) Expected mock function to have been called two times, but it was called three times." `; exports[`toHaveBeenCalledTimes passes if function called equal to expected times 1`] = ` -"expect(jest.fn()).not.toHaveBeenCalledTimes(2) +"expect(jest.fn()).not.toHaveBeenCalledTimes(2) Expected mock function not to be called two times, but it was called exactly two times." `; exports[`toHaveBeenCalledTimes verifies that actual is a Spy 1`] = ` -"expect(jest.fn())[.not].toHaveBeenCalledTimes() +"expect(jest.fn())[.not].toHaveBeenCalledTimes() jest.fn() value must be a mock function or spy. Received: @@ -220,7 +220,7 @@ Received: `; exports[`toHaveBeenCalledWith works only on spies or jest.fn 1`] = ` -"expect(jest.fn())[.not].toHaveBeenCalledWith() +"expect(jest.fn())[.not].toHaveBeenCalledWith() jest.fn() value must be a mock function or spy. Received: @@ -228,7 +228,7 @@ Received: `; exports[`toHaveBeenCalledWith works when not called 1`] = ` -"expect(jest.fn()).toHaveBeenCalledWith(expected) +"expect(jest.fn()).toHaveBeenCalledWith(expected) Expected mock function to have been called with: [\\"foo\\", \\"bar\\"] @@ -236,63 +236,63 @@ But it was not called." `; exports[`toHaveBeenCalledWith works with Immutable.js objects 1`] = ` -"expect(jest.fn()).not.toHaveBeenCalledWith(expected) +"expect(jest.fn()).not.toHaveBeenCalledWith(expected) Expected mock function not to have been called with: [Immutable.Map {\\"a\\": {\\"b\\": \\"c\\"}}, Immutable.Map {\\"a\\": {\\"b\\": \\"c\\"}}]" `; exports[`toHaveBeenCalledWith works with Map 1`] = ` -"expect(jest.fn()).not.toHaveBeenCalledWith(expected) +"expect(jest.fn()).not.toHaveBeenCalledWith(expected) Expected mock function not to have been called with: [Map {1 => 2, 2 => 1}]" `; exports[`toHaveBeenCalledWith works with Map 2`] = ` -"expect(jest.fn()).toHaveBeenCalledWith(expected) +"expect(jest.fn()).toHaveBeenCalledWith(expected) Expected mock function to have been called with: Map {\\"a\\" => \\"b\\", \\"b\\" => \\"a\\"} as argument 1, but it was called with Map {1 => 2, 2 => 1}." `; exports[`toHaveBeenCalledWith works with Set 1`] = ` -"expect(jest.fn()).not.toHaveBeenCalledWith(expected) +"expect(jest.fn()).not.toHaveBeenCalledWith(expected) Expected mock function not to have been called with: [Set {1, 2}]" `; exports[`toHaveBeenCalledWith works with Set 2`] = ` -"expect(jest.fn()).toHaveBeenCalledWith(expected) +"expect(jest.fn()).toHaveBeenCalledWith(expected) Expected mock function to have been called with: Set {3, 4} as argument 1, but it was called with Set {1, 2}." `; exports[`toHaveBeenCalledWith works with arguments that don't match 1`] = ` -"expect(jest.fn()).toHaveBeenCalledWith(expected) +"expect(jest.fn()).toHaveBeenCalledWith(expected) Expected mock function to have been called with: \\"bar\\" as argument 2, but it was called with \\"bar1\\"." `; exports[`toHaveBeenCalledWith works with arguments that match 1`] = ` -"expect(jest.fn()).not.toHaveBeenCalledWith(expected) +"expect(jest.fn()).not.toHaveBeenCalledWith(expected) Expected mock function not to have been called with: [\\"foo\\", \\"bar\\"]" `; exports[`toHaveBeenCalledWith works with many arguments 1`] = ` -"expect(jest.fn()).not.toHaveBeenCalledWith(expected) +"expect(jest.fn()).not.toHaveBeenCalledWith(expected) Expected mock function not to have been called with: [\\"foo\\", \\"bar\\"]" `; exports[`toHaveBeenCalledWith works with many arguments that don't match 1`] = ` -"expect(jest.fn()).toHaveBeenCalledWith(expected) +"expect(jest.fn()).toHaveBeenCalledWith(expected) Expected mock function to have been called with: \\"bar\\" as argument 2, but it was called with \\"bar3\\". @@ -303,7 +303,7 @@ Expected mock function to have been called with: `; exports[`toHaveBeenLastCalledWith works only on spies or jest.fn 1`] = ` -"expect(jest.fn())[.not].toHaveBeenLastCalledWith() +"expect(jest.fn())[.not].toHaveBeenLastCalledWith() jest.fn() value must be a mock function or spy. Received: @@ -311,7 +311,7 @@ Received: `; exports[`toHaveBeenLastCalledWith works when not called 1`] = ` -"expect(jest.fn()).toHaveBeenLastCalledWith(expected) +"expect(jest.fn()).toHaveBeenLastCalledWith(expected) Expected mock function to have been last called with: [\\"foo\\", \\"bar\\"] @@ -319,63 +319,63 @@ But it was not called." `; exports[`toHaveBeenLastCalledWith works with Immutable.js objects 1`] = ` -"expect(jest.fn()).not.toHaveBeenLastCalledWith(expected) +"expect(jest.fn()).not.toHaveBeenLastCalledWith(expected) Expected mock function to not have been last called with: [Immutable.Map {\\"a\\": {\\"b\\": \\"c\\"}}, Immutable.Map {\\"a\\": {\\"b\\": \\"c\\"}}]" `; exports[`toHaveBeenLastCalledWith works with Map 1`] = ` -"expect(jest.fn()).not.toHaveBeenLastCalledWith(expected) +"expect(jest.fn()).not.toHaveBeenLastCalledWith(expected) Expected mock function to not have been last called with: [Map {1 => 2, 2 => 1}]" `; exports[`toHaveBeenLastCalledWith works with Map 2`] = ` -"expect(jest.fn()).toHaveBeenLastCalledWith(expected) +"expect(jest.fn()).toHaveBeenLastCalledWith(expected) Expected mock function to have been last called with: Map {\\"a\\" => \\"b\\", \\"b\\" => \\"a\\"} as argument 1, but it was called with Map {1 => 2, 2 => 1}." `; exports[`toHaveBeenLastCalledWith works with Set 1`] = ` -"expect(jest.fn()).not.toHaveBeenLastCalledWith(expected) +"expect(jest.fn()).not.toHaveBeenLastCalledWith(expected) Expected mock function to not have been last called with: [Set {1, 2}]" `; exports[`toHaveBeenLastCalledWith works with Set 2`] = ` -"expect(jest.fn()).toHaveBeenLastCalledWith(expected) +"expect(jest.fn()).toHaveBeenLastCalledWith(expected) Expected mock function to have been last called with: Set {3, 4} as argument 1, but it was called with Set {1, 2}." `; exports[`toHaveBeenLastCalledWith works with arguments that don't match 1`] = ` -"expect(jest.fn()).toHaveBeenLastCalledWith(expected) +"expect(jest.fn()).toHaveBeenLastCalledWith(expected) Expected mock function to have been last called with: \\"bar\\" as argument 2, but it was called with \\"bar1\\"." `; exports[`toHaveBeenLastCalledWith works with arguments that match 1`] = ` -"expect(jest.fn()).not.toHaveBeenLastCalledWith(expected) +"expect(jest.fn()).not.toHaveBeenLastCalledWith(expected) Expected mock function to not have been last called with: [\\"foo\\", \\"bar\\"]" `; exports[`toHaveBeenLastCalledWith works with many arguments 1`] = ` -"expect(jest.fn()).not.toHaveBeenLastCalledWith(expected) +"expect(jest.fn()).not.toHaveBeenLastCalledWith(expected) Expected mock function to not have been last called with: [\\"foo\\", \\"bar\\"]" `; exports[`toHaveBeenLastCalledWith works with many arguments that don't match 1`] = ` -"expect(jest.fn()).toHaveBeenLastCalledWith(expected) +"expect(jest.fn()).toHaveBeenLastCalledWith(expected) Expected mock function to have been last called with: \\"bar\\" as argument 2, but it was called with \\"bar3\\"." diff --git a/packages/expect/src/__tests__/__snapshots__/to_throw_matchers.test.js.snap b/packages/expect/src/__tests__/__snapshots__/to_throw_matchers.test.js.snap index 620f1f02425a..3c7fd01c7f58 100644 --- a/packages/expect/src/__tests__/__snapshots__/to_throw_matchers.test.js.snap +++ b/packages/expect/src/__tests__/__snapshots__/to_throw_matchers.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`.toThrow() error class did not throw at all 1`] = ` -"expect(function).toThrow(type) +"expect(function).toThrow(type) Expected the function to throw an error of type: \\"Err\\" @@ -9,33 +9,33 @@ But it didn't throw anything." `; exports[`.toThrow() error class threw, but class did not match 1`] = ` -"expect(function).toThrow(type) +"expect(function).toThrow(type) Expected the function to throw an error of type: \\"Err2\\" Instead, it threw: Error - at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" + at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" `; exports[`.toThrow() error class threw, but should not have 1`] = ` -"expect(function).not.toThrow(type) +"expect(function).not.toThrow(type) Expected the function not to throw an error of type: \\"Err\\" Instead, it threw: Error - at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" + at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" `; exports[`.toThrow() invalid actual 1`] = ` -"expect(function).toThrow(undefined) +"expect(function).toThrow(undefined) Received value must be a function, but instead \\"string\\" was found" `; exports[`.toThrow() invalid arguments 1`] = ` -"expect(function).not.toThrow(number) +"expect(function).not.toThrow(number) Unexpected argument passed. Expected: \\"string\\", \\"Error (type)\\" or \\"regexp\\". @@ -44,7 +44,7 @@ Got: `; exports[`.toThrow() regexp did not throw at all 1`] = ` -"expect(function).toThrow(regexp) +"expect(function).toThrow(regexp) Expected the function to throw an error matching: /apple/ @@ -52,27 +52,27 @@ But it didn't throw anything." `; exports[`.toThrow() regexp threw, but message did not match 1`] = ` -"expect(function).toThrow(regexp) +"expect(function).toThrow(regexp) Expected the function to throw an error matching: /banana/ Instead, it threw: Error - at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" + at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" `; exports[`.toThrow() regexp threw, but should not have 1`] = ` -"expect(function).not.toThrow(regexp) +"expect(function).not.toThrow(regexp) Expected the function not to throw an error matching: /apple/ Instead, it threw: Error - at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" + at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" `; exports[`.toThrow() strings did not throw at all 1`] = ` -"expect(function).toThrow(string) +"expect(function).toThrow(string) Expected the function to throw an error matching: \\"apple\\" @@ -80,27 +80,27 @@ But it didn't throw anything." `; exports[`.toThrow() strings threw, but message did not match 1`] = ` -"expect(function).toThrow(string) +"expect(function).toThrow(string) Expected the function to throw an error matching: \\"banana\\" Instead, it threw: Error - at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" + at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" `; exports[`.toThrow() strings threw, but should not have 1`] = ` -"expect(function).not.toThrow(string) +"expect(function).not.toThrow(string) Expected the function not to throw an error matching: \\"apple\\" Instead, it threw: Error - at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" + at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" `; exports[`.toThrowError() error class did not throw at all 1`] = ` -"expect(function).toThrowError(type) +"expect(function).toThrowError(type) Expected the function to throw an error of type: \\"Err\\" @@ -108,33 +108,33 @@ But it didn't throw anything." `; exports[`.toThrowError() error class threw, but class did not match 1`] = ` -"expect(function).toThrowError(type) +"expect(function).toThrowError(type) Expected the function to throw an error of type: \\"Err2\\" Instead, it threw: Error - at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" + at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" `; exports[`.toThrowError() error class threw, but should not have 1`] = ` -"expect(function).not.toThrowError(type) +"expect(function).not.toThrowError(type) Expected the function not to throw an error of type: \\"Err\\" Instead, it threw: Error - at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" + at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" `; exports[`.toThrowError() invalid actual 1`] = ` -"expect(function).toThrowError(undefined) +"expect(function).toThrowError(undefined) Received value must be a function, but instead \\"string\\" was found" `; exports[`.toThrowError() invalid arguments 1`] = ` -"expect(function).not.toThrowError(number) +"expect(function).not.toThrowError(number) Unexpected argument passed. Expected: \\"string\\", \\"Error (type)\\" or \\"regexp\\". @@ -143,7 +143,7 @@ Got: `; exports[`.toThrowError() regexp did not throw at all 1`] = ` -"expect(function).toThrowError(regexp) +"expect(function).toThrowError(regexp) Expected the function to throw an error matching: /apple/ @@ -151,27 +151,27 @@ But it didn't throw anything." `; exports[`.toThrowError() regexp threw, but message did not match 1`] = ` -"expect(function).toThrowError(regexp) +"expect(function).toThrowError(regexp) Expected the function to throw an error matching: /banana/ Instead, it threw: Error - at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" + at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" `; exports[`.toThrowError() regexp threw, but should not have 1`] = ` -"expect(function).not.toThrowError(regexp) +"expect(function).not.toThrowError(regexp) Expected the function not to throw an error matching: /apple/ Instead, it threw: Error - at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" + at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" `; exports[`.toThrowError() strings did not throw at all 1`] = ` -"expect(function).toThrowError(string) +"expect(function).toThrowError(string) Expected the function to throw an error matching: \\"apple\\" @@ -179,21 +179,21 @@ But it didn't throw anything." `; exports[`.toThrowError() strings threw, but message did not match 1`] = ` -"expect(function).toThrowError(string) +"expect(function).toThrowError(string) Expected the function to throw an error matching: \\"banana\\" Instead, it threw: Error - at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" + at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" `; exports[`.toThrowError() strings threw, but should not have 1`] = ` -"expect(function).not.toThrowError(string) +"expect(function).not.toThrowError(string) Expected the function not to throw an error matching: \\"apple\\" Instead, it threw: Error - at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" + at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)" `; diff --git a/packages/jest-cli/src/lib/__tests__/__snapshots__/format_test_name_by_pattern.test.js.snap b/packages/jest-cli/src/lib/__tests__/__snapshots__/format_test_name_by_pattern.test.js.snap index db0e46a1f88a..64210a3277f4 100644 --- a/packages/jest-cli/src/lib/__tests__/__snapshots__/format_test_name_by_pattern.test.js.snap +++ b/packages/jest-cli/src/lib/__tests__/__snapshots__/format_test_name_by_pattern.test.js.snap @@ -1,27 +1,27 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`for multiline test name returns test name with highlighted pattern and replaced line breaks 1`] = `"should⏎ name the ⏎function you at..."`; +exports[`for multiline test name returns test name with highlighted pattern and replaced line breaks 1`] = `"should⏎ name the ⏎function you at..."`; -exports[`for multiline test name returns test name with highlighted pattern and replaced line breaks 2`] = `"should⏎ name the ⏎function you at..."`; +exports[`for multiline test name returns test name with highlighted pattern and replaced line breaks 2`] = `"should⏎ name the ⏎function you at..."`; -exports[`for multiline test name returns test name with highlighted pattern and replaced line breaks 3`] = `"should⏎ name the ⏎function you at..."`; +exports[`for multiline test name returns test name with highlighted pattern and replaced line breaks 3`] = `"should⏎ name the ⏎function you at..."`; -exports[`for one line test name pattern in the middle test name with cutted tail and cutted highlighted pattern 1`] = `"should nam..."`; +exports[`for one line test name pattern in the middle test name with cutted tail and cutted highlighted pattern 1`] = `"should nam..."`; -exports[`for one line test name pattern in the middle test name with cutted tail and highlighted pattern 1`] = `"should name the functi..."`; +exports[`for one line test name pattern in the middle test name with cutted tail and highlighted pattern 1`] = `"should name the functi..."`; -exports[`for one line test name pattern in the middle test name with highlighted cutted 1`] = `"sho..."`; +exports[`for one line test name pattern in the middle test name with highlighted cutted 1`] = `"sho..."`; -exports[`for one line test name pattern in the middle test name with highlighted pattern returns 1`] = `"should name the function you attach"`; +exports[`for one line test name pattern in the middle test name with highlighted pattern returns 1`] = `"should name the function you attach"`; -exports[`for one line test name pattern in the tail returns test name with cutted tail and cutted highlighted pattern 1`] = `"should name the function you a..."`; +exports[`for one line test name pattern in the tail returns test name with cutted tail and cutted highlighted pattern 1`] = `"should name the function you a..."`; -exports[`for one line test name pattern in the tail returns test name with highlighted cutted 1`] = `"sho..."`; +exports[`for one line test name pattern in the tail returns test name with highlighted cutted 1`] = `"sho..."`; -exports[`for one line test name pattern in the tail returns test name with highlighted pattern 1`] = `"should name the function you attach"`; +exports[`for one line test name pattern in the tail returns test name with highlighted pattern 1`] = `"should name the function you attach"`; exports[`for one line test name with pattern in the head returns test name with cutted tail and cutted highlighted pattern 1`] = `"shoul..."`; -exports[`for one line test name with pattern in the head returns test name with cutted tail and highlighted pattern 1`] = `"should name the function yo..."`; +exports[`for one line test name with pattern in the head returns test name with cutted tail and highlighted pattern 1`] = `"should name the function yo..."`; -exports[`for one line test name with pattern in the head returns test name with highlighted pattern 1`] = `"should name the function you attach"`; +exports[`for one line test name with pattern in the head returns test name with highlighted pattern 1`] = `"should name the function you attach"`; diff --git a/packages/jest-cli/src/reporters/__tests__/__snapshots__/get_snapshot_status.test.js.snap b/packages/jest-cli/src/reporters/__tests__/__snapshots__/get_snapshot_status.test.js.snap index e4344d6d9ca8..9a85be89c1e2 100644 --- a/packages/jest-cli/src/reporters/__tests__/__snapshots__/get_snapshot_status.test.js.snap +++ b/packages/jest-cli/src/reporters/__tests__/__snapshots__/get_snapshot_status.test.js.snap @@ -2,20 +2,20 @@ exports[`Retrieves the snapshot status 1`] = ` Array [ - " › 1 snapshot written.", - " › 1 snapshot updated.", - " › 1 obsolete snapshot found.", - " › 1 snapshot test failed.", + " › 1 snapshot written.", + " › 1 snapshot updated.", + " › 1 obsolete snapshot found.", + " › 1 snapshot test failed.", ] `; exports[`Retrieves the snapshot status after a snapshot update 1`] = ` Array [ - " › 2 snapshots written.", - " › 2 snapshots updated.", - " › 2 obsolete snapshots removed.", - " › Obsolete snapshot file removed.", - " › 2 snapshot tests failed.", + " › 2 snapshots written.", + " › 2 snapshots updated.", + " › 2 obsolete snapshots removed.", + " › Obsolete snapshot file removed.", + " › 2 snapshot tests failed.", ] `; diff --git a/packages/jest-cli/src/reporters/__tests__/__snapshots__/get_snapshot_summary.test.js.snap b/packages/jest-cli/src/reporters/__tests__/__snapshots__/get_snapshot_summary.test.js.snap index eaad60cd6ae2..ceb2aa87d21b 100644 --- a/packages/jest-cli/src/reporters/__tests__/__snapshots__/get_snapshot_summary.test.js.snap +++ b/packages/jest-cli/src/reporters/__tests__/__snapshots__/get_snapshot_summary.test.js.snap @@ -2,39 +2,39 @@ exports[`creates a snapshot summary 1`] = ` Array [ - "Snapshot Summary", - " › 1 snapshot written in 1 test suite.", - " › 1 snapshot test failed in 1 test suite. Inspect your code changes or press --u to update them.", - " › 1 snapshot updated in 1 test suite.", - " › 1 obsolete snapshot file found, press --u to remove it.", - " › 1 obsolete snapshot found, press --u to remove it.", + "Snapshot Summary", + " › 1 snapshot written in 1 test suite.", + " › 1 snapshot test failed in 1 test suite. Inspect your code changes or press --u to update them.", + " › 1 snapshot updated in 1 test suite.", + " › 1 obsolete snapshot file found, press --u to remove it.", + " › 1 obsolete snapshot found, press --u to remove it.", ] `; exports[`creates a snapshot summary after an update 1`] = ` Array [ - "Snapshot Summary", - " › 1 snapshot written in 1 test suite.", - " › 1 snapshot test failed in 1 test suite. Inspect your code changes or press --u to update them.", - " › 1 snapshot updated in 1 test suite.", - " › 1 obsolete snapshot file removed.", - " › 1 obsolete snapshot removed.", + "Snapshot Summary", + " › 1 snapshot written in 1 test suite.", + " › 1 snapshot test failed in 1 test suite. Inspect your code changes or press --u to update them.", + " › 1 snapshot updated in 1 test suite.", + " › 1 obsolete snapshot file removed.", + " › 1 obsolete snapshot removed.", ] `; exports[`creates a snapshot summary with multiple snapshot being written/updated 1`] = ` Array [ - "Snapshot Summary", - " › 2 snapshots written in 2 test suites.", - " › 2 snapshot tests failed in 2 test suites. Inspect your code changes or press --u to update them.", - " › 2 snapshots updated in 2 test suites.", - " › 2 obsolete snapshot files found, press --u to remove them..", - " › 2 obsolete snapshots found, press --u to remove them.", + "Snapshot Summary", + " › 2 snapshots written in 2 test suites.", + " › 2 snapshot tests failed in 2 test suites. Inspect your code changes or press --u to update them.", + " › 2 snapshots updated in 2 test suites.", + " › 2 obsolete snapshot files found, press --u to remove them..", + " › 2 obsolete snapshots found, press --u to remove them.", ] `; exports[`returns nothing if there are no updates 1`] = ` Array [ - "Snapshot Summary", + "Snapshot Summary", ] `; diff --git a/packages/jest-cli/src/reporters/__tests__/__snapshots__/utils.test.js.snap b/packages/jest-cli/src/reporters/__tests__/__snapshots__/utils.test.js.snap index 27b939ba8e4f..4c7556f9f5f0 100644 --- a/packages/jest-cli/src/reporters/__tests__/__snapshots__/utils.test.js.snap +++ b/packages/jest-cli/src/reporters/__tests__/__snapshots__/utils.test.js.snap @@ -1,14 +1,14 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`trimAndFormatPath() does not trim anything 1`] = `"1234567890/1234567890/1234.js"`; +exports[`trimAndFormatPath() does not trim anything 1`] = `"1234567890/1234567890/1234.js"`; -exports[`trimAndFormatPath() split at the path.sep index 1`] = `".../1234.js"`; +exports[`trimAndFormatPath() split at the path.sep index 1`] = `".../1234.js"`; -exports[`trimAndFormatPath() trims dirname (longer line width) 1`] = `"...890/1234567890/1234.js"`; +exports[`trimAndFormatPath() trims dirname (longer line width) 1`] = `"...890/1234567890/1234.js"`; -exports[`trimAndFormatPath() trims dirname 1`] = `"...234567890/1234.js"`; +exports[`trimAndFormatPath() trims dirname 1`] = `"...234567890/1234.js"`; -exports[`trimAndFormatPath() trims dirname and basename 1`] = `"...1234.js"`; +exports[`trimAndFormatPath() trims dirname and basename 1`] = `"...1234.js"`; exports[`wrapAnsiString() returns the string unaltered if given a terminal width of zero 1`] = `"This string shouldn't cause you any trouble"`; @@ -16,8 +16,8 @@ exports[`wrapAnsiString() returns the string unaltered if given a terminal width exports[`wrapAnsiString() wraps a long string containing ansi chars 1`] = ` "abcde red- -bold 12344 -56bcd 123t +bold 12344 +56bcd 123t tttttththt hththththt hththththt @@ -26,7 +26,7 @@ hthththtet etetetette tetetetete tetetestnh -snthsnthss +snthsnthss ot" `; diff --git a/packages/jest-config/src/__tests__/__snapshots__/normalize.test.js.snap b/packages/jest-config/src/__tests__/__snapshots__/normalize.test.js.snap index 242e96770347..6f4f4c96fca3 100644 --- a/packages/jest-config/src/__tests__/__snapshots__/normalize.test.js.snap +++ b/packages/jest-config/src/__tests__/__snapshots__/normalize.test.js.snap @@ -1,58 +1,58 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Upgrade help logs a warning when \`scriptPreprocessor\` and/or \`preprocessorIgnorePatterns\` are used 1`] = ` -" Deprecation Warning: - - Option \\"preprocessorIgnorePatterns\\" was replaced by \\"transformIgnorePatterns\\", which support multiple preprocessors. - - Jest now treats your current configuration as: - { - \\"transformIgnorePatterns\\": [\\"bar/baz\\", \\"qux/quux\\"] - } - - Please update your configuration. - - Configuration Documentation: - https://facebook.github.io/jest/docs/configuration.html -" +"yellow Deprecation Warning: +yellow +yellow Option \\"preprocessorIgnorePatterns\\" was replaced by \\"transformIgnorePatterns\\", which support multiple preprocessors. +yellow +yellow Jest now treats your current configuration as: +yellow { +yellow \\"transformIgnorePatterns\\": [\\"bar/baz\\", \\"qux/quux\\"] +yellow } +yellow +yellow Please update your configuration. +yellow +yellow Configuration Documentation: +yellow https://facebook.github.io/jest/docs/configuration.html +yellow" `; exports[`preset throws when preset not found 1`] = ` -"Validation Error: +"Validation Error: - Preset doesnt-exist not found. + Preset doesnt-exist not found. - Configuration Documentation: + Configuration Documentation: https://facebook.github.io/jest/docs/configuration.html " `; exports[`rootDir throws if the options is missing a rootDir property 1`] = ` -"Validation Error: +"Validation Error: - Configuration option rootDir must be specified. + Configuration option rootDir must be specified. - Configuration Documentation: + Configuration Documentation: https://facebook.github.io/jest/docs/configuration.html " `; exports[`testEnvironment throws on invalid environment names 1`] = ` -"Validation Error: +"Validation Error: - Test environment phantom cannot be found. Make sure the testEnvironment configuration option points to an existing node module. + Test environment phantom cannot be found. Make sure the testEnvironment configuration option points to an existing node module. - Configuration Documentation: + Configuration Documentation: https://facebook.github.io/jest/docs/configuration.html " `; exports[`testMatch throws if testRegex and testMatch are both specified 1`] = ` -"Validation Error: +"Validation Error: - Configuration options testMatch and testRegex cannot be used together. + Configuration options testMatch and testRegex cannot be used together. - Configuration Documentation: + Configuration Documentation: https://facebook.github.io/jest/docs/configuration.html " `; diff --git a/packages/jest-diff/src/__tests__/__snapshots__/diff.test.js.snap b/packages/jest-diff/src/__tests__/__snapshots__/diff.test.js.snap index 9d8d7abf845d..bfc02811ec21 100644 --- a/packages/jest-diff/src/__tests__/__snapshots__/diff.test.js.snap +++ b/packages/jest-diff/src/__tests__/__snapshots__/diff.test.js.snap @@ -4,7 +4,7 @@ exports[`background color of spaces cyan for inchanged (expanded) 1`] = ` "- Expected + Received -
+
+

following string consists of a space: @@ -14,81 +14,81 @@ exports[`background color of spaces cyan for inchanged (expanded) 1`] = ` line has following space only +

-
" +
" `; exports[`background color of spaces green for removed (expanded) 1`] = ` "- Expected + Received -
- +
+ - following string consists of a space: - - line has preceding space only - line has both preceding and following space - line has following space only + - -
" +
+
" `; exports[`background color of spaces no color for unchanged (expanded) 1`] = ` "- Expected + Received -
+
- +

- following string consists of a space: - - line has preceding space only - line has both preceding and following space - line has following space only + following string consists of a space: + + line has preceding space only + line has both preceding and following space + line has following space only - +

-
" +
" `; exports[`background color of spaces red for added (expanded) 1`] = ` "- Expected + Received -
- +
+ - + following string consists of a space: + + line has preceding space only + line has both preceding and following space + line has following space only - -
" +
+
" `; exports[`collapses big diffs to patch format 1`] = ` "- Expected + Received -@@ -6,9 +6,9 @@ - 4, - 5, - 6, - 7, - 8, +yellow@@ -6,9 +6,9 @@ + 4, + 5, + 6, + 7, + 8, + 10, - 9, + 9, - 10, - ], - }" + ], + }" `; exports[`color of text (expanded) 1`] = ` "- Expected + Received - Object { - \\"searching\\": \\"\\", + Object { + \\"searching\\": \\"\\", - \\"sorting\\": Object { + \\"sorting\\": Array [ + Object { @@ -96,33 +96,33 @@ exports[`color of text (expanded) 1`] = ` \\"fieldKey\\": \\"what\\", }, + ], - }" + }" `; exports[`context number of lines: -1 (5 default) 1`] = ` "- Expected + Received -@@ -6,9 +6,9 @@ - 4, - 5, - 6, - 7, - 8, +yellow@@ -6,9 +6,9 @@ + 4, + 5, + 6, + 7, + 8, + 10, - 9, + 9, - 10, - ], - }" + ], + }" `; exports[`context number of lines: 0 1`] = ` "- Expected + Received -@@ -11,0 +11,1 @@ +yellow@@ -11,0 +11,1 @@ + 10, -@@ -12,1 +13,0 @@ +yellow@@ -12,1 +13,0 @@ - 10," `; @@ -130,57 +130,57 @@ exports[`context number of lines: 1 1`] = ` "- Expected + Received -@@ -10,4 +10,4 @@ - 8, +yellow@@ -10,4 +10,4 @@ + 8, + 10, - 9, + 9, - 10, - ]," + ]," `; exports[`context number of lines: 2 1`] = ` "- Expected + Received -@@ -9,6 +9,6 @@ - 7, - 8, +yellow@@ -9,6 +9,6 @@ + 7, + 8, + 10, - 9, + 9, - 10, - ], - }" + ], + }" `; exports[`context number of lines: null (5 default) 1`] = ` "- Expected + Received -@@ -6,9 +6,9 @@ - 4, - 5, - 6, - 7, - 8, +yellow@@ -6,9 +6,9 @@ + 4, + 5, + 6, + 7, + 8, + 10, - 9, + 9, - 10, - ], - }" + ], + }" `; exports[`falls back to not call toJSON if objects look identical 1`] = ` -"Compared values serialize to the same structure. -Printing internal object structure without calling \`toJSON\` instead. +"Compared values serialize to the same structure. +Printing internal object structure without calling \`toJSON\` instead. - Expected + Received - Object { + Object { - \\"line\\": 1, + \\"line\\": 2, - \\"toJSON\\": [Function toJSON], - }" + \\"toJSON\\": [Function toJSON], + }" `; -exports[`prints a fallback message if two objects truly look identical 1`] = `"Compared values have no visual difference."`; +exports[`prints a fallback message if two objects truly look identical 1`] = `"Compared values have no visual difference."`; diff --git a/packages/jest-jasmine2/src/__tests__/__snapshots__/matchers.test.js.snap b/packages/jest-jasmine2/src/__tests__/__snapshots__/matchers.test.js.snap index e5d5bd4c36b3..3b46bc3937ff 100644 --- a/packages/jest-jasmine2/src/__tests__/__snapshots__/matchers.test.js.snap +++ b/packages/jest-jasmine2/src/__tests__/__snapshots__/matchers.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`matchers proxies matchers to expect 1`] = ` -"expect(received).toBe(expected) +"expect(received).toBe(expected) Expected value to be (using ===): 2 diff --git a/packages/jest-matcher-utils/src/__tests__/__snapshots__/index.test.js.snap b/packages/jest-matcher-utils/src/__tests__/__snapshots__/index.test.js.snap index b651fcfbe4ee..7a8565648a34 100644 --- a/packages/jest-matcher-utils/src/__tests__/__snapshots__/index.test.js.snap +++ b/packages/jest-matcher-utils/src/__tests__/__snapshots__/index.test.js.snap @@ -5,7 +5,7 @@ exports[`.stringify() reduces maxDepth if stringifying very large objects 1`] = exports[`.stringify() reduces maxDepth if stringifying very large objects 2`] = `"{\\"a\\": 1, \\"b\\": {\\"0\\": \\"test\\", \\"1\\": \\"test\\", \\"2\\": \\"test\\", \\"3\\": \\"test\\", \\"4\\": \\"test\\", \\"5\\": \\"test\\", \\"6\\": \\"test\\", \\"7\\": \\"test\\", \\"8\\": \\"test\\", \\"9\\": \\"test\\"}}"`; exports[`.stringify() toJSON errors when comparing two objects 1`] = ` -"expect(received).toEqual(expected) +"expect(received).toEqual(expected) Expected value to equal: {\\"b\\": 1, \\"toJSON\\": [Function toJSON]} @@ -17,9 +17,9 @@ Difference: - Expected + Received - Object { + Object { - \\"b\\": 1, + \\"a\\": 1, - \\"toJSON\\": [Function toJSON], - }" + \\"toJSON\\": [Function toJSON], + }" `; diff --git a/packages/jest-message-util/src/__tests__/__snapshots__/messages.test.js.snap b/packages/jest-message-util/src/__tests__/__snapshots__/messages.test.js.snap index ad5059bf544e..ddcbfd37f4fe 100644 --- a/packages/jest-message-util/src/__tests__/__snapshots__/messages.test.js.snap +++ b/packages/jest-message-util/src/__tests__/__snapshots__/messages.test.js.snap @@ -1,18 +1,18 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`.formatExecError() 1`] = ` -" ● Test suite failed to run +" ● Test suite failed to run Whoops! " `; exports[`should exclude jasmine from stack trace for Unix paths. 1`] = ` -" Unix test +" Unix test at stack (../jest-jasmine2/build/jasmine-2.4.1.js:1580:17) - - at Object.addResult (../jest-jasmine2/build/jasmine-2.4.1.js:1550:14) - at Object.it (build/__tests__/messages-test.js:45:41) + + at Object.addResult (../jest-jasmine2/build/jasmine-2.4.1.js:1550:14) + at Object.it (build/__tests__/messages-test.js:45:41) " `; diff --git a/packages/jest-util/src/__tests__/__snapshots__/validate_cli_options.test.js.snap b/packages/jest-util/src/__tests__/__snapshots__/validate_cli_options.test.js.snap index ded89401533c..b954dd76dbb7 100644 --- a/packages/jest-util/src/__tests__/__snapshots__/validate_cli_options.test.js.snap +++ b/packages/jest-util/src/__tests__/__snapshots__/validate_cli_options.test.js.snap @@ -1,22 +1,22 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`fails for multiple unknown options 1`] = ` -" Unrecognized CLI Parameters: +" Unrecognized CLI Parameters: Following options were not recognized: - [\\"jest\\", \\"test\\"] + [\\"jest\\", \\"test\\"] - CLI Options Documentation: + CLI Options Documentation: http://facebook.github.io/jest/docs/cli.html " `; exports[`fails for unknown option 1`] = ` -" Unrecognized CLI Parameter: +" Unrecognized CLI Parameter: - Unrecognized option \\"unknown\\". + Unrecognized option \\"unknown\\". - CLI Options Documentation: + CLI Options Documentation: http://facebook.github.io/jest/docs/cli.html " `; diff --git a/packages/jest-validate/src/__tests__/__snapshots__/validate.test.js.snap b/packages/jest-validate/src/__tests__/__snapshots__/validate.test.js.snap index 309ba014957d..1d13099cdda4 100644 --- a/packages/jest-validate/src/__tests__/__snapshots__/validate.test.js.snap +++ b/packages/jest-validate/src/__tests__/__snapshots__/validate.test.js.snap @@ -1,138 +1,138 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`displays warning for deprecated config options 1`] = ` -" Deprecation Warning: - - Option scriptPreprocessor was replaced by transform, which support multiple preprocessors. - - Jest now treats your current configuration as: - { - \\"transform\\": {\\".*\\": \\"test\\"} - } - - Please update your configuration. -" +"yellow Deprecation Warning: +yellow +yellow Option scriptPreprocessor was replaced by transform, which support multiple preprocessors. +yellow +yellow Jest now treats your current configuration as: +yellow { +yellow \\"transform\\": {\\".*\\": \\"test\\"} +yellow } +yellow +yellow Please update your configuration. +yellow" `; exports[`displays warning for unknown config options 1`] = ` -" Validation Warning: - - Unknown option \\"unkwon\\" with value {} was found. Did you mean \\"unknown\\"? - This is probably a typing mistake. Fixing it will remove this message. -" +"yellow Validation Warning: +yellow +yellow Unknown option \\"unkwon\\" with value {} was found. Did you mean \\"unknown\\"? +yellow This is probably a typing mistake. Fixing it will remove this message. +yellow" `; exports[`pretty prints valid config for Array 1`] = ` -" Validation Error: +" Validation Error: - Option \\"coverageReporters\\" must be of type: - array + Option \\"coverageReporters\\" must be of type: + array but instead received: - object + object Example: { - \\"coverageReporters\\": [\\"json\\", \\"text\\", \\"lcov\\", \\"clover\\"] + \\"coverageReporters\\": [\\"json\\", \\"text\\", \\"lcov\\", \\"clover\\"] } " `; exports[`pretty prints valid config for Boolean 1`] = ` -" Validation Error: +" Validation Error: - Option \\"automock\\" must be of type: - boolean + Option \\"automock\\" must be of type: + boolean but instead received: - array + array Example: { - \\"automock\\": false + \\"automock\\": false } " `; exports[`pretty prints valid config for Function 1`] = ` -" Validation Error: +" Validation Error: - Option \\"fn\\" must be of type: - function + Option \\"fn\\" must be of type: + function but instead received: - string + string Example: { - \\"fn\\": (config, option, deprecatedOptions) => true + \\"fn\\": (config, option, deprecatedOptions) => true } " `; exports[`pretty prints valid config for Object 1`] = ` -" Validation Error: +" Validation Error: - Option \\"haste\\" must be of type: - object + Option \\"haste\\" must be of type: + object but instead received: - number + number Example: { - \\"haste\\": {\\"providesModuleNodeModules\\": [\\"react\\", \\"react-native\\"]} + \\"haste\\": {\\"providesModuleNodeModules\\": [\\"react\\", \\"react-native\\"]} } " `; exports[`pretty prints valid config for String 1`] = ` -" Validation Error: +" Validation Error: - Option \\"preset\\" must be of type: - string + Option \\"preset\\" must be of type: + string but instead received: - number + number Example: { - \\"preset\\": \\"react-native\\" + \\"preset\\": \\"react-native\\" } " `; exports[`works with custom deprecations 1`] = ` -"My Custom Deprecation Warning: - - Option scriptPreprocessor was replaced by transform, which support multiple preprocessors. - - Jest now treats your current configuration as: - { - \\"transform\\": {\\".*\\": \\"test\\"} - } - - Please update your configuration. - -My custom comment" +"yellowMy Custom Deprecation Warning: +yellow +yellow Option scriptPreprocessor was replaced by transform, which support multiple preprocessors. +yellow +yellow Jest now treats your current configuration as: +yellow { +yellow \\"transform\\": {\\".*\\": \\"test\\"} +yellow } +yellow +yellow Please update your configuration. +yellow +yellowMy custom comment" `; exports[`works with custom errors 1`] = ` -"My Custom Error: +"My Custom Error: - Option \\"test\\" must be of type: - array + Option \\"test\\" must be of type: + array but instead received: - string + string Example: { - \\"test\\": [1, 2] + \\"test\\": [1, 2] } My custom comment" `; exports[`works with custom warnings 1`] = ` -"My Custom Warning: - - Unknown option \\"unknown\\" with value \\"string\\" was found. - This is probably a typing mistake. Fixing it will remove this message. - -My custom comment" +"yellowMy Custom Warning: +yellow +yellow Unknown option \\"unknown\\" with value \\"string\\" was found. +yellow This is probably a typing mistake. Fixing it will remove this message. +yellow +yellowMy custom comment" `; diff --git a/packages/pretty-format/src/__tests__/__snapshots__/react.test.js.snap b/packages/pretty-format/src/__tests__/__snapshots__/react.test.js.snap index 480acab20cc9..fead50985fbf 100644 --- a/packages/pretty-format/src/__tests__/__snapshots__/react.test.js.snap +++ b/packages/pretty-format/src/__tests__/__snapshots__/react.test.js.snap @@ -2,7 +2,7 @@ exports[`ReactElement plugin highlights syntax 1`] = ` " - prop={ + yellowprop={
mouse @@ -15,7 +15,7 @@ exports[`ReactElement plugin highlights syntax 1`] = ` exports[`ReactElement plugin highlights syntax with color from theme option 1`] = ` " - style=\\"color:red\\" + yellowstyle=\\"color:red\\" > Hello, Mouse! " @@ -23,7 +23,7 @@ exports[`ReactElement plugin highlights syntax with color from theme option 1`] exports[`ReactTestComponent plugin highlights syntax 1`] = ` " - prop={ + yellowprop={
mouse @@ -36,7 +36,7 @@ exports[`ReactTestComponent plugin highlights syntax 1`] = ` exports[`ReactTestComponent plugin highlights syntax with color from theme option 1`] = ` " - style=\\"color:red\\" + yellowstyle=\\"color:red\\" > Hello, Mouse! " diff --git a/packages/pretty-format/src/plugins/convert_ansi.js b/packages/pretty-format/src/plugins/convert_ansi.js index 81069b69d46d..614309e1e22e 100644 --- a/packages/pretty-format/src/plugins/convert_ansi.js +++ b/packages/pretty-format/src/plugins/convert_ansi.js @@ -18,9 +18,15 @@ const toHumanReadableAnsi = text => { case style.red.close: case style.green.close: case style.cyan.close: + case style.gray.close: + case style.white.close: + case style.yellow.close: case style.bgRed.close: case style.bgGreen.close: case style.bgCyan.close: + case style.inverse.close: + case style.dim.close: + case style.bold.close: case style.reset.open: case style.reset.close: return ''; @@ -30,12 +36,20 @@ const toHumanReadableAnsi = text => { return ''; case style.cyan.open: return ''; + case style.gray.open: + return ''; + case style.yellow.open: + return 'yellow'; case style.bgRed.open: return ''; case style.bgGreen.open: return ''; case style.bgCyan.open: return ''; + case style.inverse.open: + return ''; case style.dim.open: return ''; case style.bold.open: From 4d25d9ab38c7a7169724ddde3caa477b383ae1dc Mon Sep 17 00:00:00 2001 From: Mark Pedrotti Date: Wed, 27 Sep 2017 10:49:01 -0400 Subject: [PATCH 2/2] Correct opening tags for gray and yellow --- .../__snapshots__/normalize.test.js.snap | 28 ++++---- .../__tests__/__snapshots__/diff.test.js.snap | 14 ++-- .../__snapshots__/validate.test.js.snap | 68 +++++++++---------- .../__snapshots__/react.test.js.snap | 8 +-- .../pretty-format/src/plugins/convert_ansi.js | 4 +- 5 files changed, 61 insertions(+), 61 deletions(-) diff --git a/packages/jest-config/src/__tests__/__snapshots__/normalize.test.js.snap b/packages/jest-config/src/__tests__/__snapshots__/normalize.test.js.snap index 6f4f4c96fca3..73a07001f27f 100644 --- a/packages/jest-config/src/__tests__/__snapshots__/normalize.test.js.snap +++ b/packages/jest-config/src/__tests__/__snapshots__/normalize.test.js.snap @@ -1,20 +1,20 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Upgrade help logs a warning when \`scriptPreprocessor\` and/or \`preprocessorIgnorePatterns\` are used 1`] = ` -"yellow Deprecation Warning: -yellow -yellow Option \\"preprocessorIgnorePatterns\\" was replaced by \\"transformIgnorePatterns\\", which support multiple preprocessors. -yellow -yellow Jest now treats your current configuration as: -yellow { -yellow \\"transformIgnorePatterns\\": [\\"bar/baz\\", \\"qux/quux\\"] -yellow } -yellow -yellow Please update your configuration. -yellow -yellow Configuration Documentation: -yellow https://facebook.github.io/jest/docs/configuration.html -yellow" +" Deprecation Warning: + + Option \\"preprocessorIgnorePatterns\\" was replaced by \\"transformIgnorePatterns\\", which support multiple preprocessors. + + Jest now treats your current configuration as: + { + \\"transformIgnorePatterns\\": [\\"bar/baz\\", \\"qux/quux\\"] + } + + Please update your configuration. + + Configuration Documentation: + https://facebook.github.io/jest/docs/configuration.html +" `; exports[`preset throws when preset not found 1`] = ` diff --git a/packages/jest-diff/src/__tests__/__snapshots__/diff.test.js.snap b/packages/jest-diff/src/__tests__/__snapshots__/diff.test.js.snap index bfc02811ec21..b459df8d2453 100644 --- a/packages/jest-diff/src/__tests__/__snapshots__/diff.test.js.snap +++ b/packages/jest-diff/src/__tests__/__snapshots__/diff.test.js.snap @@ -70,7 +70,7 @@ exports[`collapses big diffs to patch format 1`] = ` "- Expected + Received -yellow@@ -6,9 +6,9 @@ +@@ -6,9 +6,9 @@ 4, 5, 6, @@ -103,7 +103,7 @@ exports[`context number of lines: -1 (5 default) 1`] = ` "- Expected + Received -yellow@@ -6,9 +6,9 @@ +@@ -6,9 +6,9 @@ 4, 5, 6, @@ -120,9 +120,9 @@ exports[`context number of lines: 0 1`] = ` "- Expected + Received -yellow@@ -11,0 +11,1 @@ +@@ -11,0 +11,1 @@ + 10, -yellow@@ -12,1 +13,0 @@ +@@ -12,1 +13,0 @@ - 10," `; @@ -130,7 +130,7 @@ exports[`context number of lines: 1 1`] = ` "- Expected + Received -yellow@@ -10,4 +10,4 @@ +@@ -10,4 +10,4 @@ 8, + 10, 9, @@ -142,7 +142,7 @@ exports[`context number of lines: 2 1`] = ` "- Expected + Received -yellow@@ -9,6 +9,6 @@ +@@ -9,6 +9,6 @@ 7, 8, + 10, @@ -156,7 +156,7 @@ exports[`context number of lines: null (5 default) 1`] = ` "- Expected + Received -yellow@@ -6,9 +6,9 @@ +@@ -6,9 +6,9 @@ 4, 5, 6, diff --git a/packages/jest-validate/src/__tests__/__snapshots__/validate.test.js.snap b/packages/jest-validate/src/__tests__/__snapshots__/validate.test.js.snap index 1d13099cdda4..de79961455f5 100644 --- a/packages/jest-validate/src/__tests__/__snapshots__/validate.test.js.snap +++ b/packages/jest-validate/src/__tests__/__snapshots__/validate.test.js.snap @@ -1,25 +1,25 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`displays warning for deprecated config options 1`] = ` -"yellow Deprecation Warning: -yellow -yellow Option scriptPreprocessor was replaced by transform, which support multiple preprocessors. -yellow -yellow Jest now treats your current configuration as: -yellow { -yellow \\"transform\\": {\\".*\\": \\"test\\"} -yellow } -yellow -yellow Please update your configuration. -yellow" +" Deprecation Warning: + + Option scriptPreprocessor was replaced by transform, which support multiple preprocessors. + + Jest now treats your current configuration as: + { + \\"transform\\": {\\".*\\": \\"test\\"} + } + + Please update your configuration. +" `; exports[`displays warning for unknown config options 1`] = ` -"yellow Validation Warning: -yellow -yellow Unknown option \\"unkwon\\" with value {} was found. Did you mean \\"unknown\\"? -yellow This is probably a typing mistake. Fixing it will remove this message. -yellow" +" Validation Warning: + + Unknown option \\"unkwon\\" with value {} was found. Did you mean \\"unknown\\"? + This is probably a typing mistake. Fixing it will remove this message. +" `; exports[`pretty prints valid config for Array 1`] = ` @@ -98,18 +98,18 @@ exports[`pretty prints valid config for String 1`] = ` `; exports[`works with custom deprecations 1`] = ` -"yellowMy Custom Deprecation Warning: -yellow -yellow Option scriptPreprocessor was replaced by transform, which support multiple preprocessors. -yellow -yellow Jest now treats your current configuration as: -yellow { -yellow \\"transform\\": {\\".*\\": \\"test\\"} -yellow } -yellow -yellow Please update your configuration. -yellow -yellowMy custom comment" +"My Custom Deprecation Warning: + + Option scriptPreprocessor was replaced by transform, which support multiple preprocessors. + + Jest now treats your current configuration as: + { + \\"transform\\": {\\".*\\": \\"test\\"} + } + + Please update your configuration. + +My custom comment" `; exports[`works with custom errors 1`] = ` @@ -129,10 +129,10 @@ exports[`works with custom errors 1`] = ` `; exports[`works with custom warnings 1`] = ` -"yellowMy Custom Warning: -yellow -yellow Unknown option \\"unknown\\" with value \\"string\\" was found. -yellow This is probably a typing mistake. Fixing it will remove this message. -yellow -yellowMy custom comment" +"My Custom Warning: + + Unknown option \\"unknown\\" with value \\"string\\" was found. + This is probably a typing mistake. Fixing it will remove this message. + +My custom comment" `; diff --git a/packages/pretty-format/src/__tests__/__snapshots__/react.test.js.snap b/packages/pretty-format/src/__tests__/__snapshots__/react.test.js.snap index fead50985fbf..043e12cbb652 100644 --- a/packages/pretty-format/src/__tests__/__snapshots__/react.test.js.snap +++ b/packages/pretty-format/src/__tests__/__snapshots__/react.test.js.snap @@ -2,7 +2,7 @@ exports[`ReactElement plugin highlights syntax 1`] = ` " - yellowprop={ + prop={
mouse @@ -15,7 +15,7 @@ exports[`ReactElement plugin highlights syntax 1`] = ` exports[`ReactElement plugin highlights syntax with color from theme option 1`] = ` " - yellowstyle=\\"color:red\\" + style=\\"color:red\\" > Hello, Mouse! " @@ -23,7 +23,7 @@ exports[`ReactElement plugin highlights syntax with color from theme option 1`] exports[`ReactTestComponent plugin highlights syntax 1`] = ` " - yellowprop={ + prop={
mouse @@ -36,7 +36,7 @@ exports[`ReactTestComponent plugin highlights syntax 1`] = ` exports[`ReactTestComponent plugin highlights syntax with color from theme option 1`] = ` " - yellowstyle=\\"color:red\\" + style=\\"color:red\\" > Hello, Mouse! " diff --git a/packages/pretty-format/src/plugins/convert_ansi.js b/packages/pretty-format/src/plugins/convert_ansi.js index 614309e1e22e..a7546bab0253 100644 --- a/packages/pretty-format/src/plugins/convert_ansi.js +++ b/packages/pretty-format/src/plugins/convert_ansi.js @@ -37,11 +37,11 @@ const toHumanReadableAnsi = text => { case style.cyan.open: return ''; case style.gray.open: - return ''; case style.white.open: return ''; case style.yellow.open: - return 'yellow'; + return ''; case style.bgRed.open: return ''; case style.bgGreen.open: