|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`works with custom inline snapshot matchers 1`] = ` |
| 4 | +FAIL __tests__/asynchronous.test.js |
| 5 | + ✕ new async, inline snapshots |
| 6 | + ✕ mismatching async, inline snapshots |
| 7 | +
|
| 8 | + ● new async, inline snapshots |
| 9 | +
|
| 10 | + expect(received).toMatchInlineSnapshot() |
| 11 | +
|
| 12 | + Snapshot name: \`new async, inline snapshots 1\` |
| 13 | +
|
| 14 | + New snapshot was not written. The update flag must be explicitly passed to write a new snapshot. |
| 15 | +
|
| 16 | + This is likely because this test is run in a continuous integration (CI) environment in which snapshots are not written by default. |
| 17 | +
|
| 18 | + Received: "result #1" |
| 19 | +
|
| 20 | + 17 | |
| 21 | + 18 | test('new async, inline snapshots', async () => { |
| 22 | + > 19 | await expect(async () => 'result #1').toMatchObservationInlineSnapshot(); |
| 23 | + | ^ |
| 24 | + 20 | await expect(async () => 'result #2').toMatchObservationInlineSnapshot(); |
| 25 | + 21 | }); |
| 26 | + 22 | |
| 27 | +
|
| 28 | + at Object.toMatchObservationInlineSnapshot (__tests__/asynchronous.test.js:19:41) |
| 29 | +
|
| 30 | + ● new async, inline snapshots |
| 31 | +
|
| 32 | + expect(received).toMatchInlineSnapshot() |
| 33 | +
|
| 34 | + Snapshot name: \`new async, inline snapshots 2\` |
| 35 | +
|
| 36 | + New snapshot was not written. The update flag must be explicitly passed to write a new snapshot. |
| 37 | +
|
| 38 | + This is likely because this test is run in a continuous integration (CI) environment in which snapshots are not written by default. |
| 39 | +
|
| 40 | + Received: "result #2" |
| 41 | +
|
| 42 | + 18 | test('new async, inline snapshots', async () => { |
| 43 | + 19 | await expect(async () => 'result #1').toMatchObservationInlineSnapshot(); |
| 44 | + > 20 | await expect(async () => 'result #2').toMatchObservationInlineSnapshot(); |
| 45 | + | ^ |
| 46 | + 21 | }); |
| 47 | + 22 | |
| 48 | + 23 | test('mismatching async, inline snapshots', async () => { |
| 49 | +
|
| 50 | + at Object.toMatchObservationInlineSnapshot (__tests__/asynchronous.test.js:20:41) |
| 51 | +
|
| 52 | + ● mismatching async, inline snapshots |
| 53 | +
|
| 54 | + expect(received).toMatchInlineSnapshot(snapshot) |
| 55 | +
|
| 56 | + Snapshot name: \`mismatching async, inline snapshots 1\` |
| 57 | +
|
| 58 | + Snapshot: "result #?" |
| 59 | + Received: "result #1" |
| 60 | +
|
| 61 | + 22 | |
| 62 | + 23 | test('mismatching async, inline snapshots', async () => { |
| 63 | + > 24 | await expect(async () => 'result #1').toMatchObservationInlineSnapshot( |
| 64 | + | ^ |
| 65 | + 25 | \`"result #?"\`, |
| 66 | + 26 | ); |
| 67 | + 27 | await expect(async () => 'result #1').toMatchObservationInlineSnapshot( |
| 68 | +
|
| 69 | + at Object.toMatchObservationInlineSnapshot (__tests__/asynchronous.test.js:24:41) |
| 70 | +
|
| 71 | + ● mismatching async, inline snapshots |
| 72 | +
|
| 73 | + expect(received).toMatchInlineSnapshot(snapshot) |
| 74 | +
|
| 75 | + Snapshot name: \`mismatching async, inline snapshots 2\` |
| 76 | +
|
| 77 | + Snapshot: "result #?" |
| 78 | + Received: "result #1" |
| 79 | +
|
| 80 | + 25 | \`"result #?"\`, |
| 81 | + 26 | ); |
| 82 | + > 27 | await expect(async () => 'result #1').toMatchObservationInlineSnapshot( |
| 83 | + | ^ |
| 84 | + 28 | \`"result #?"\`, |
| 85 | + 29 | ); |
| 86 | + 30 | }); |
| 87 | +
|
| 88 | + at Object.toMatchObservationInlineSnapshot (__tests__/asynchronous.test.js:27:41) |
| 89 | +
|
| 90 | + › 4 snapshots failed. |
| 91 | +Snapshot Summary |
| 92 | + › 4 snapshots failed from 1 test suite. Inspect your code changes or re-run jest with \`-u\` to update them. |
| 93 | +`; |
0 commit comments