Skip to content

test: WriteClient.migrateUpdateDocuments (WIP) #553

test: WriteClient.migrateUpdateDocuments (WIP)

test: WriteClient.migrateUpdateDocuments (WIP) #553

Triggered via push September 5, 2024 17:58
Status Failure
Total duration 1m 38s
Artifacts

ci.yml

on: push
Matrix: prepare
Matrix: size
Matrix: suite
Matrix: types
Fit to window
Zoom out
Zoom in

Annotations

36 errors and 12 warnings
test/helpers-mapSliceZone.test.ts > maps a Slice Zone: test/helpers-mapSliceZone.test.ts#L44
AssertionError: expected [ { __mapped: true, …(3) }, …(1) ] to strictly equal [ { __mapped: true, …(3) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, "foo": "bar", - "id": Any<String>, + "id": undefined, "slice_type": "malesuada", }, Object { "__mapped": true, "baz": "qux", - "id": Any<String>, + "id": undefined, "slice_type": "fusce", }, ] ❯ test/helpers-mapSliceZone.test.ts:44:17
test/helpers-mapSliceZone.test.ts > supports mapping functions that return undefined: test/helpers-mapSliceZone.test.ts#L68
AssertionError: expected [ { __mapped: true, …(2) }, …(1) ] to strictly equal [ { __mapped: true, …(2) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, - "id": Any<String>, + "id": undefined, "slice_type": "in", }, Object { "__mapped": true, - "id": Any<String>, + "id": undefined, "slice_type": "nibh", }, ] ❯ test/helpers-mapSliceZone.test.ts:68:17
test/helpers-mapSliceZone.test.ts > supports async mapping functions: test/helpers-mapSliceZone.test.ts#L82
AssertionError: expected [ { __mapped: true, …(3) }, …(1) ] to strictly equal [ { __mapped: true, …(3) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, "foo": "bar", - "id": Any<String>, + "id": undefined, "slice_type": "tortor", }, Object { "__mapped": true, "baz": "qux", - "id": Any<String>, + "id": undefined, "slice_type": "hendrerit", }, ] ❯ test/helpers-mapSliceZone.test.ts:82:17
test/helpers-mapSliceZone.test.ts > supports lazy-loaded mapping functions: test/helpers-mapSliceZone.test.ts#L178
AssertionError: expected [ { __mapped: true, …(3) }, …(1) ] to strictly equal [ { __mapped: true, …(3) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, "foo": "bar", - "id": Any<String>, + "id": undefined, "slice_type": "pretium", }, Object { "__mapped": true, "baz": "qux", - "id": Any<String>, + "id": undefined, "slice_type": "egestas", }, ] ❯ test/helpers-mapSliceZone.test.ts:178:17
test/helpers-mapSliceZone.test.ts > skips Slices without a mapping function: test/helpers-mapSliceZone.test.ts#L201
AssertionError: expected [ { __mapped: true, …(2) }, …(1) ] to strictly equal [ { __mapped: true, …(2) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, - "id": Any<String>, + "id": undefined, "slice_type": "lectus", }, Object { "items": Array [ Object { "bar": "Varius quam quisque", }, Object { "bar": "Risus sed vulputate", }, ], "primary": Object { "foo": "Mauris a diam", }, "slice_label": null, "slice_type": "neque", "variation": "urna", "version": "5f460a7", }, ] ❯ test/helpers-mapSliceZone.test.ts:201:17
test/writeClient-fetchForeignAsset.test.ts > fetches a foreign asset with content type: src/WriteClient.ts#L1000
ReferenceError: File is not defined ❯ WriteClient.fetchForeignAsset src/WriteClient.ts:1000:3 ❯ test/writeClient-fetchForeignAsset.test.ts:23:15
test/writeClient-fetchForeignAsset.test.ts > fetches a foreign asset with no content type: src/WriteClient.ts#L1000
ReferenceError: File is not defined ❯ WriteClient.fetchForeignAsset src/WriteClient.ts:1000:3 ❯ test/writeClient-fetchForeignAsset.test.ts:40:15
test/writeClient-fetchForeignAsset.test.ts > supports custom headers: src/WriteClient.ts#L1000
ReferenceError: File is not defined ❯ WriteClient.fetchForeignAsset src/WriteClient.ts:1000:3 ❯ test/writeClient-fetchForeignAsset.test.ts:103:15
test/writeClient-fetchForeignAsset.test.ts > supports global custom headers: src/WriteClient.ts#L1000
ReferenceError: File is not defined ❯ WriteClient.fetchForeignAsset src/WriteClient.ts:1000:3 ❯ test/writeClient-fetchForeignAsset.test.ts:129:15
Suite (ubuntu-latest, Node 18)
Process completed with exit code 1.
test/helpers-mapSliceZone.test.ts > maps a Slice Zone: test/helpers-mapSliceZone.test.ts#L44
AssertionError: expected [ { __mapped: true, …(3) }, …(1) ] to strictly equal [ { __mapped: true, …(3) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, "foo": "bar", - "id": Any<String>, + "id": undefined, "slice_type": "malesuada", }, Object { "__mapped": true, "baz": "qux", - "id": Any<String>, + "id": undefined, "slice_type": "fusce", }, ] ❯ test/helpers-mapSliceZone.test.ts:44:17
test/helpers-mapSliceZone.test.ts > supports mapping functions that return undefined: test/helpers-mapSliceZone.test.ts#L68
AssertionError: expected [ { __mapped: true, …(2) }, …(1) ] to strictly equal [ { __mapped: true, …(2) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, - "id": Any<String>, + "id": undefined, "slice_type": "in", }, Object { "__mapped": true, - "id": Any<String>, + "id": undefined, "slice_type": "nibh", }, ] ❯ test/helpers-mapSliceZone.test.ts:68:17
test/helpers-mapSliceZone.test.ts > supports async mapping functions: test/helpers-mapSliceZone.test.ts#L82
AssertionError: expected [ { __mapped: true, …(3) }, …(1) ] to strictly equal [ { __mapped: true, …(3) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, "foo": "bar", - "id": Any<String>, + "id": undefined, "slice_type": "tortor", }, Object { "__mapped": true, "baz": "qux", - "id": Any<String>, + "id": undefined, "slice_type": "hendrerit", }, ] ❯ test/helpers-mapSliceZone.test.ts:82:17
test/helpers-mapSliceZone.test.ts > supports lazy-loaded mapping functions: test/helpers-mapSliceZone.test.ts#L178
AssertionError: expected [ { __mapped: true, …(3) }, …(1) ] to strictly equal [ { __mapped: true, …(3) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, "foo": "bar", - "id": Any<String>, + "id": undefined, "slice_type": "pretium", }, Object { "__mapped": true, "baz": "qux", - "id": Any<String>, + "id": undefined, "slice_type": "egestas", }, ] ❯ test/helpers-mapSliceZone.test.ts:178:17
test/helpers-mapSliceZone.test.ts > skips Slices without a mapping function: test/helpers-mapSliceZone.test.ts#L201
AssertionError: expected [ { __mapped: true, …(2) }, …(1) ] to strictly equal [ { __mapped: true, …(2) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, - "id": Any<String>, + "id": undefined, "slice_type": "lectus", }, Object { "items": Array [ Object { "bar": "Varius quam quisque", }, Object { "bar": "Risus sed vulputate", }, ], "primary": Object { "foo": "Mauris a diam", }, "slice_label": null, "slice_type": "neque", "variation": "urna", "version": "5f460a7", }, ] ❯ test/helpers-mapSliceZone.test.ts:201:17
Suite (ubuntu-latest, Node 16)
Process completed with exit code 1.
test/helpers-mapSliceZone.test.ts > maps a Slice Zone: test/helpers-mapSliceZone.test.ts#L44
AssertionError: expected [ { __mapped: true, …(3) }, …(1) ] to strictly equal [ { __mapped: true, …(3) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, "foo": "bar", - "id": Any<String>, + "id": undefined, "slice_type": "malesuada", }, Object { "__mapped": true, "baz": "qux", - "id": Any<String>, + "id": undefined, "slice_type": "fusce", }, ] ❯ test/helpers-mapSliceZone.test.ts:44:17
test/helpers-mapSliceZone.test.ts > supports mapping functions that return undefined: test/helpers-mapSliceZone.test.ts#L68
AssertionError: expected [ { __mapped: true, …(2) }, …(1) ] to strictly equal [ { __mapped: true, …(2) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, - "id": Any<String>, + "id": undefined, "slice_type": "in", }, Object { "__mapped": true, - "id": Any<String>, + "id": undefined, "slice_type": "nibh", }, ] ❯ test/helpers-mapSliceZone.test.ts:68:17
test/helpers-mapSliceZone.test.ts > supports async mapping functions: test/helpers-mapSliceZone.test.ts#L82
AssertionError: expected [ { __mapped: true, …(3) }, …(1) ] to strictly equal [ { __mapped: true, …(3) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, "foo": "bar", - "id": Any<String>, + "id": undefined, "slice_type": "tortor", }, Object { "__mapped": true, "baz": "qux", - "id": Any<String>, + "id": undefined, "slice_type": "hendrerit", }, ] ❯ test/helpers-mapSliceZone.test.ts:82:17
test/helpers-mapSliceZone.test.ts > supports lazy-loaded mapping functions: test/helpers-mapSliceZone.test.ts#L178
AssertionError: expected [ { __mapped: true, …(3) }, …(1) ] to strictly equal [ { __mapped: true, …(3) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, "foo": "bar", - "id": Any<String>, + "id": undefined, "slice_type": "pretium", }, Object { "__mapped": true, "baz": "qux", - "id": Any<String>, + "id": undefined, "slice_type": "egestas", }, ] ❯ test/helpers-mapSliceZone.test.ts:178:17
test/helpers-mapSliceZone.test.ts > skips Slices without a mapping function: test/helpers-mapSliceZone.test.ts#L201
AssertionError: expected [ { __mapped: true, …(2) }, …(1) ] to strictly equal [ { __mapped: true, …(2) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, - "id": Any<String>, + "id": undefined, "slice_type": "lectus", }, Object { "items": Array [ Object { "bar": "Varius quam quisque", }, Object { "bar": "Risus sed vulputate", }, ], "primary": Object { "foo": "Mauris a diam", }, "slice_label": null, "slice_type": "neque", "variation": "urna", "version": "5f460a7", }, ] ❯ test/helpers-mapSliceZone.test.ts:201:17
test/writeClient-migrateUpdateDocuments.test.ts > patches image fields > regular > slice: test/__testutils__/testMigrationFieldPatching.ts#L93
Error: Snapshot `patches image fields > regular > slice 1` mismatched - Expected + Received @@ -1,9 +1,8 @@ { "slices": [ { - "id": "e93cc3e4f28", "items": [ { "field": { "alt": null, "copyright": null, @@ -15,31 +14,33 @@ "background": "transparent", "x": 0, "y": 0, "zoom": 0, }, - "id": "45306297c5e", - "url": "https://images.unsplash.com/photo-1604537466608-109fa2f16c3b?w=4240&h=2832&fit=crop", + "id": "93cc3e4f28b", + "url": "https://images.unsplash.com/photo-1446329813274-7c9036bd9a1f?w=6000&h=4000&fit=crop", }, }, ], "primary": { "field": { - "alt": null, - "copyright": null, - "dimensions": { - "height": 1, - "width": 1, + "file": "foo", + "filename": "foo.png", + "id": "foo", + "image": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "image", }, - "edit": { - "background": "transparent", - "x": 0, - "y": 0, - "zoom": 0, + "linkToMedia": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "linkToMedia", }, - "id": "45306297c5e", - "url": "https://images.unsplash.com/photo-1604537466608-109fa2f16c3b?w=4240&h=2832&fit=crop", + "migrationType": "image", }, }, "slice_label": "Pellentesque", "slice_type": "nulla_posuere", }, ❯ test/__testutils__/testMigrationFieldPatching.ts:93:21
test/writeClient-migrateUpdateDocuments.test.ts > patches image fields > regular > shared slice: test/__testutils__/testMigrationFieldPatching.ts#L93
Error: Snapshot `patches image fields > regular > shared slice 1` mismatched - Expected + Received @@ -1,9 +1,8 @@ { "slices": [ { - "id": "2ff58c741ba", "items": [ { "field": { "alt": null, "copyright": null, @@ -15,55 +14,59 @@ "background": "transparent", "x": 0, "y": 0, "zoom": 0, }, - "id": "f2c3f8bfc90", - "url": "https://images.unsplash.com/photo-1604537529428-15bcbeecfe4d?w=4240&h=2832&fit=crop", + "id": "1baa79b9dd0", + "url": "https://images.unsplash.com/reserve/HgZuGu3gSD6db21T3lxm_San%20Zenone.jpg?w=6373&h=4253&fit=crop", }, }, ], "primary": { "field": { - "alt": null, - "copyright": null, - "dimensions": { - "height": 1, - "width": 1, + "file": "foo", + "filename": "foo.png", + "id": "foo", + "image": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "image", }, - "edit": { - "background": "transparent", - "x": 0, - "y": 0, - "zoom": 0, + "linkToMedia": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "linkToMedia", }, - "id": "f2c3f8bfc90", - "url": "https://images.unsplash.com/photo-1604537529428-15bcbeecfe4d?w=4240&h=2832&fit=crop", + "migrationType": "image", }, "group": [ { "field": { - "alt": null, - "copyright": null, - "dimensions": { - "height": 1, - "width": 1, + "file": "foo", + "filename": "foo.png", + "id": "foo", + "image": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "image", }, - "edit": { - "background": "transparent", - "x": 0, - "y": 0, - "zoom": 0, + "linkToMedia": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "linkToMedia", }, - "id": "f2c3f8bfc90", - "url": "https://images.unsplash.com/photo-1604537529428-15bcbeecfe4d?w=4240&h=2832&fit=crop", + "migrationType": "image", }, }, ], }, "slice_label": null, "slice_type": "at", "variation": "tortor", - "version": "a79b9dd", + "version": "2ff58c7", }, ], } ❯ test/__testutils__/testMigrationFieldPatching.ts:93:21
test/writeClient-migrateUpdateDocuments.test.ts > patches image fields > richText > slice: test/__testutils__/testMigrationFieldPatching.ts#L93
Error: Snapshot `patches image fields > richText > slice 1` mismatched - Expected + Received @@ -1,16 +1,15 @@ { "slices": [ { - "id": "e93cc3e4f28", "items": [ { "field": [ { "spans": [], - "text": "Habitasse platea dictumst quisque sagittis purus sit", - "type": "o-list-item", + "text": "Nunc Pulvinar Sapien Et Ligula Ullamcorper Malesuada Proin Libero Nunc Consequat", + "type": "heading4", }, { "alt": null, "copyright": null, "dimensions": { @@ -21,40 +20,41 @@ "background": "transparent", "x": 0, "y": 0, "zoom": 0, }, - "id": "7963dc361cc", + "id": "82beb55ec2f", "type": "image", - "url": "https://images.unsplash.com/photo-1470770903676-69b98201ea1c?w=4554&h=3036&fit=crop", + "url": "https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=7372&h=4392&fit=crop", }, ], }, ], "primary": { "field": [ { "spans": [], - "text": "Ac Orci Phasellus Egestas Tellus", - "type": "heading5", + "text": "Hac Habitasse Platea Dictumst Vestibulum Rhoncus Est Pellentesque Elit", + "type": "heading1", }, { - "alt": null, - "copyright": null, - "dimensions": { - "height": 1, - "width": 1, + "file": "foo", + "filename": "foo.png", + "id": "foo", + "image": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "image", }, - "edit": { - "background": "transparent", - "x": 0, - "y": 0, - "zoom": 0, + "linkToMedia": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "linkToMedia", }, - "id": "7963dc361cc", - "type": "image", - "url": "https://images.unsplash.com/photo-1470770903676-69b98201ea1c?w=4554&h=3036&fit=crop", + "migrationType": "image", }, ], }, "slice_label": "Pellentesque", "slice_type": "nulla_posuere", ❯ test/__testutils__/testMigrationFieldPatching.ts:93:21
test/writeClient-migrateUpdateDocuments.test.ts > patches image fields > richText > shared slice: test/__testutils__/testMigrationFieldPatching.ts#L93
Error: Snapshot `patches image fields > richText > shared slice 1` mismatched - Expected + Received @@ -1,16 +1,15 @@ { "slices": [ { - "id": "2ff58c741ba", "items": [ { "field": [ { "spans": [], - "text": "Eu Mi", - "type": "heading3", + "text": "Egestas tellus rutrum tellus pellentesque eu tincidunt tortor aliquam nulla facilisi", + "type": "o-list-item", }, { "alt": null, "copyright": null, "dimensions": { @@ -21,73 +20,75 @@ "background": "transparent", "x": 0, "y": 0, "zoom": 0, }, - "id": "bc31787853a", + "id": "0aacba97bfb", "type": "image", - "url": "https://images.unsplash.com/photo-1470770903676-69b98201ea1c?w=4554&h=3036&fit=crop", + "url": "https://images.unsplash.com/photo-1604537466608-109fa2f16c3b?w=4240&h=2832&fit=crop", }, ], }, ], "primary": { "field": [ { "spans": [], - "text": "Fringilla Phasellus Faucibus Scelerisque Eleifend Donec Pretium", - "type": "heading3", + "text": "Fringilla est ullamcorper eget nulla facilisi", + "type": "o-list-item", }, { - "alt": null, - "copyright": null, - "dimensions": { - "height": 1, - "width": 1, + "file": "foo", + "filename": "foo.png", + "id": "foo", + "image": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "image", }, - "edit": { - "background": "transparent", - "x": 0, - "y": 0, - "zoom": 0, + "linkToMedia": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "linkToMedia", }, - "id": "bc31787853a", - "type": "image", - "url": "https://images.unsplash.com/photo-1470770903676-69b98201ea1c?w=4554&h=3036&fit=crop", + "migrationType": "image", }, ], "group": [ { "field": [ { "spans": [], - "text": "Arcu", - "type": "heading1", + "text": "Risus at ultrices mi tempus imperdiet nulla. Aliquam malesuada bibendum arcu vitae elementum curabitur vitae nunc sed. Faucibus scelerisque eleifend donec pretium. Pulvinar elementum integer enim neque volutpat ac. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Egestas maecenas pharetra convallis posuere morbi leo urna molestie at.", + "type": "paragraph", }, { - "alt": null, - "copyright": null, - "dimensions": { - "height": 1, - "width": 1, + "file": "foo", + "filename": "foo.png", + "id": "foo", + "image": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "image", }, - "edit": { - "background": "transparent", - "x": 0, - "y": 0, - "zoom": 0, + "linkToMedia": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "linkToMedia", }, - "id": "bc31787853a", - "type": "imag
test/writeClient-migrateUpdateDocuments.test.ts > patches link fields > existingDocument > slice: test/__testutils__/testMigrationFieldPatching.ts#L93
Error: Snapshot `patches link fields > existingDocument > slice 1` mismatched - Expected + Received @@ -1,9 +1,8 @@ { "slices": [ { - "id": "e93cc3e4f28", "items": [ { "field": { "id": "382a11c", "isBroken": false, @@ -16,18 +15,25 @@ }, }, ], "primary": { "field": { + "alternate_languages": [], + "data": {}, + "first_publication_date": "2023-03-14T17:13:14.540Z", + "href": "https://molestie.example", "id": "382a11c", - "isBroken": false, "lang": "sapien", - "link_type": "Document", + "last_publication_date": "2021-12-09T19:53:28.424Z", + "linked_documents": [], + "slugs": [], "tags": [ "Aenean", ], "type": "amet", + "uid": null, + "url": "https://molestie.example", }, }, "slice_label": "Pellentesque", "slice_type": "nulla_posuere", }, ❯ test/__testutils__/testMigrationFieldPatching.ts:93:21
test/helpers-mapSliceZone.test.ts > maps a Slice Zone: test/helpers-mapSliceZone.test.ts#L44
AssertionError: expected [ { __mapped: true, …(3) }, …(1) ] to strictly equal [ { __mapped: true, …(3) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, "foo": "bar", - "id": Any<String>, + "id": undefined, "slice_type": "malesuada", }, Object { "__mapped": true, "baz": "qux", - "id": Any<String>, + "id": undefined, "slice_type": "fusce", }, ] ❯ test/helpers-mapSliceZone.test.ts:44:17
test/helpers-mapSliceZone.test.ts > supports mapping functions that return undefined: test/helpers-mapSliceZone.test.ts#L68
AssertionError: expected [ { __mapped: true, …(2) }, …(1) ] to strictly equal [ { __mapped: true, …(2) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, - "id": Any<String>, + "id": undefined, "slice_type": "in", }, Object { "__mapped": true, - "id": Any<String>, + "id": undefined, "slice_type": "nibh", }, ] ❯ test/helpers-mapSliceZone.test.ts:68:17
test/helpers-mapSliceZone.test.ts > supports async mapping functions: test/helpers-mapSliceZone.test.ts#L82
AssertionError: expected [ { __mapped: true, …(3) }, …(1) ] to strictly equal [ { __mapped: true, …(3) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, "foo": "bar", - "id": Any<String>, + "id": undefined, "slice_type": "tortor", }, Object { "__mapped": true, "baz": "qux", - "id": Any<String>, + "id": undefined, "slice_type": "hendrerit", }, ] ❯ test/helpers-mapSliceZone.test.ts:82:17
test/helpers-mapSliceZone.test.ts > supports lazy-loaded mapping functions: test/helpers-mapSliceZone.test.ts#L178
AssertionError: expected [ { __mapped: true, …(3) }, …(1) ] to strictly equal [ { __mapped: true, …(3) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, "foo": "bar", - "id": Any<String>, + "id": undefined, "slice_type": "pretium", }, Object { "__mapped": true, "baz": "qux", - "id": Any<String>, + "id": undefined, "slice_type": "egestas", }, ] ❯ test/helpers-mapSliceZone.test.ts:178:17
test/helpers-mapSliceZone.test.ts > skips Slices without a mapping function: test/helpers-mapSliceZone.test.ts#L201
AssertionError: expected [ { __mapped: true, …(2) }, …(1) ] to strictly equal [ { __mapped: true, …(2) }, …(1) ] - Expected + Received Array [ Object { "__mapped": true, - "id": Any<String>, + "id": undefined, "slice_type": "lectus", }, Object { "items": Array [ Object { "bar": "Varius quam quisque", }, Object { "bar": "Risus sed vulputate", }, ], "primary": Object { "foo": "Mauris a diam", }, "slice_label": null, "slice_type": "neque", "variation": "urna", "version": "5f460a7", }, ] ❯ test/helpers-mapSliceZone.test.ts:201:17
test/writeClient-migrateUpdateDocuments.test.ts > patches image fields > regular > slice: test/__testutils__/testMigrationFieldPatching.ts#L93
Error: Snapshot `patches image fields > regular > slice 1` mismatched - Expected + Received @@ -1,9 +1,8 @@ { "slices": [ { - "id": "e93cc3e4f28", "items": [ { "field": { "alt": null, "copyright": null, @@ -15,31 +14,33 @@ "background": "transparent", "x": 0, "y": 0, "zoom": 0, }, - "id": "45306297c5e", - "url": "https://images.unsplash.com/photo-1604537466608-109fa2f16c3b?w=4240&h=2832&fit=crop", + "id": "93cc3e4f28b", + "url": "https://images.unsplash.com/photo-1446329813274-7c9036bd9a1f?w=6000&h=4000&fit=crop", }, }, ], "primary": { "field": { - "alt": null, - "copyright": null, - "dimensions": { - "height": 1, - "width": 1, + "file": "foo", + "filename": "foo.png", + "id": "foo", + "image": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "image", }, - "edit": { - "background": "transparent", - "x": 0, - "y": 0, - "zoom": 0, + "linkToMedia": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "linkToMedia", }, - "id": "45306297c5e", - "url": "https://images.unsplash.com/photo-1604537466608-109fa2f16c3b?w=4240&h=2832&fit=crop", + "migrationType": "image", }, }, "slice_label": "Pellentesque", "slice_type": "nulla_posuere", }, ❯ test/__testutils__/testMigrationFieldPatching.ts:93:21
test/writeClient-migrateUpdateDocuments.test.ts > patches image fields > regular > shared slice: test/__testutils__/testMigrationFieldPatching.ts#L93
Error: Snapshot `patches image fields > regular > shared slice 1` mismatched - Expected + Received @@ -1,9 +1,8 @@ { "slices": [ { - "id": "2ff58c741ba", "items": [ { "field": { "alt": null, "copyright": null, @@ -15,55 +14,59 @@ "background": "transparent", "x": 0, "y": 0, "zoom": 0, }, - "id": "f2c3f8bfc90", - "url": "https://images.unsplash.com/photo-1604537529428-15bcbeecfe4d?w=4240&h=2832&fit=crop", + "id": "1baa79b9dd0", + "url": "https://images.unsplash.com/reserve/HgZuGu3gSD6db21T3lxm_San%20Zenone.jpg?w=6373&h=4253&fit=crop", }, }, ], "primary": { "field": { - "alt": null, - "copyright": null, - "dimensions": { - "height": 1, - "width": 1, + "file": "foo", + "filename": "foo.png", + "id": "foo", + "image": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "image", }, - "edit": { - "background": "transparent", - "x": 0, - "y": 0, - "zoom": 0, + "linkToMedia": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "linkToMedia", }, - "id": "f2c3f8bfc90", - "url": "https://images.unsplash.com/photo-1604537529428-15bcbeecfe4d?w=4240&h=2832&fit=crop", + "migrationType": "image", }, "group": [ { "field": { - "alt": null, - "copyright": null, - "dimensions": { - "height": 1, - "width": 1, + "file": "foo", + "filename": "foo.png", + "id": "foo", + "image": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "image", }, - "edit": { - "background": "transparent", - "x": 0, - "y": 0, - "zoom": 0, + "linkToMedia": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "linkToMedia", }, - "id": "f2c3f8bfc90", - "url": "https://images.unsplash.com/photo-1604537529428-15bcbeecfe4d?w=4240&h=2832&fit=crop", + "migrationType": "image", }, }, ], }, "slice_label": null, "slice_type": "at", "variation": "tortor", - "version": "a79b9dd", + "version": "2ff58c7", }, ], } ❯ test/__testutils__/testMigrationFieldPatching.ts:93:21
test/writeClient-migrateUpdateDocuments.test.ts > patches image fields > richText > slice: test/__testutils__/testMigrationFieldPatching.ts#L93
Error: Snapshot `patches image fields > richText > slice 1` mismatched - Expected + Received @@ -1,16 +1,15 @@ { "slices": [ { - "id": "e93cc3e4f28", "items": [ { "field": [ { "spans": [], - "text": "Habitasse platea dictumst quisque sagittis purus sit", - "type": "o-list-item", + "text": "Nunc Pulvinar Sapien Et Ligula Ullamcorper Malesuada Proin Libero Nunc Consequat", + "type": "heading4", }, { "alt": null, "copyright": null, "dimensions": { @@ -21,40 +20,41 @@ "background": "transparent", "x": 0, "y": 0, "zoom": 0, }, - "id": "7963dc361cc", + "id": "82beb55ec2f", "type": "image", - "url": "https://images.unsplash.com/photo-1470770903676-69b98201ea1c?w=4554&h=3036&fit=crop", + "url": "https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=7372&h=4392&fit=crop", }, ], }, ], "primary": { "field": [ { "spans": [], - "text": "Ac Orci Phasellus Egestas Tellus", - "type": "heading5", + "text": "Hac Habitasse Platea Dictumst Vestibulum Rhoncus Est Pellentesque Elit", + "type": "heading1", }, { - "alt": null, - "copyright": null, - "dimensions": { - "height": 1, - "width": 1, + "file": "foo", + "filename": "foo.png", + "id": "foo", + "image": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "image", }, - "edit": { - "background": "transparent", - "x": 0, - "y": 0, - "zoom": 0, + "linkToMedia": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "linkToMedia", }, - "id": "7963dc361cc", - "type": "image", - "url": "https://images.unsplash.com/photo-1470770903676-69b98201ea1c?w=4554&h=3036&fit=crop", + "migrationType": "image", }, ], }, "slice_label": "Pellentesque", "slice_type": "nulla_posuere", ❯ test/__testutils__/testMigrationFieldPatching.ts:93:21
test/writeClient-migrateUpdateDocuments.test.ts > patches image fields > richText > shared slice: test/__testutils__/testMigrationFieldPatching.ts#L93
Error: Snapshot `patches image fields > richText > shared slice 1` mismatched - Expected + Received @@ -1,16 +1,15 @@ { "slices": [ { - "id": "2ff58c741ba", "items": [ { "field": [ { "spans": [], - "text": "Eu Mi", - "type": "heading3", + "text": "Egestas tellus rutrum tellus pellentesque eu tincidunt tortor aliquam nulla facilisi", + "type": "o-list-item", }, { "alt": null, "copyright": null, "dimensions": { @@ -21,73 +20,75 @@ "background": "transparent", "x": 0, "y": 0, "zoom": 0, }, - "id": "bc31787853a", + "id": "0aacba97bfb", "type": "image", - "url": "https://images.unsplash.com/photo-1470770903676-69b98201ea1c?w=4554&h=3036&fit=crop", + "url": "https://images.unsplash.com/photo-1604537466608-109fa2f16c3b?w=4240&h=2832&fit=crop", }, ], }, ], "primary": { "field": [ { "spans": [], - "text": "Fringilla Phasellus Faucibus Scelerisque Eleifend Donec Pretium", - "type": "heading3", + "text": "Fringilla est ullamcorper eget nulla facilisi", + "type": "o-list-item", }, { - "alt": null, - "copyright": null, - "dimensions": { - "height": 1, - "width": 1, + "file": "foo", + "filename": "foo.png", + "id": "foo", + "image": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "image", }, - "edit": { - "background": "transparent", - "x": 0, - "y": 0, - "zoom": 0, + "linkToMedia": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "linkToMedia", }, - "id": "bc31787853a", - "type": "image", - "url": "https://images.unsplash.com/photo-1470770903676-69b98201ea1c?w=4554&h=3036&fit=crop", + "migrationType": "image", }, ], "group": [ { "field": [ { "spans": [], - "text": "Arcu", - "type": "heading1", + "text": "Risus at ultrices mi tempus imperdiet nulla. Aliquam malesuada bibendum arcu vitae elementum curabitur vitae nunc sed. Faucibus scelerisque eleifend donec pretium. Pulvinar elementum integer enim neque volutpat ac. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Egestas maecenas pharetra convallis posuere morbi leo urna molestie at.", + "type": "paragraph", }, { - "alt": null, - "copyright": null, - "dimensions": { - "height": 1, - "width": 1, + "file": "foo", + "filename": "foo.png", + "id": "foo", + "image": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "image", }, - "edit": { - "background": "transparent", - "x": 0, - "y": 0, - "zoom": 0, + "linkToMedia": { + "file": "foo", + "filename": "foo.png", + "id": "foo", + "migrationType": "linkToMedia", }, - "id": "bc31787853a", - "type": "imag
test/writeClient-migrateUpdateDocuments.test.ts > patches link fields > existingDocument > slice: test/__testutils__/testMigrationFieldPatching.ts#L93
Error: Snapshot `patches link fields > existingDocument > slice 1` mismatched - Expected + Received @@ -1,9 +1,8 @@ { "slices": [ { - "id": "e93cc3e4f28", "items": [ { "field": { "id": "382a11c", "isBroken": false, @@ -16,18 +15,25 @@ }, }, ], "primary": { "field": { + "alternate_languages": [], + "data": {}, + "first_publication_date": "2023-03-14T17:13:14.540Z", + "href": "https://molestie.example", "id": "382a11c", - "isBroken": false, "lang": "sapien", - "link_type": "Document", + "last_publication_date": "2021-12-09T19:53:28.424Z", + "linked_documents": [], + "slugs": [], "tags": [ "Aenean", ], "type": "amet", + "uid": null, + "url": "https://molestie.example", }, }, "slice_label": "Pellentesque", "slice_type": "nulla_posuere", }, ❯ test/__testutils__/testMigrationFieldPatching.ts:93:21
Prepare (ubuntu-latest, Node 22)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Prepare (ubuntu-latest, Node 20)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Prepare (ubuntu-latest, Node 18)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Prepare (ubuntu-latest, Node 16)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Types (ubuntu-latest, Node 22, TS 5.5)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Types (ubuntu-latest, Node 22, TS 5.4)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Types (ubuntu-latest, Node 22, TS 5.2)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Types (ubuntu-latest, Node 22, TS 5.3)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Suite (ubuntu-latest, Node 18)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Suite (ubuntu-latest, Node 16)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Suite (ubuntu-latest, Node 20)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Suite (ubuntu-latest, Node 22)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/