Skip to content

build(package): upgrade react from 18 to 19 in devDependencies #4459

build(package): upgrade react from 18 to 19 in devDependencies

build(package): upgrade react from 18 to 19 in devDependencies #4459

Triggered via push December 6, 2024 01:08
Status Failure
Total duration 40s
Artifacts

build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
domToReact › converts single DOM node to React: __tests__/dom-to-react.test.tsx#L24
expect(received).toMatchSnapshot() Snapshot name: `domToReact converts single DOM node to React 1` - Snapshot - 3 + Received + 10 - <p> - foo - </p> + { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": null, + "props": { + "children": "foo", + }, + "type": "p", + } at Object.<anonymous> (__tests__/dom-to-react.test.tsx:24:26)
domToReact › converts multiple DOM nodes to React: __tests__/dom-to-react.test.tsx#L34
expect(received).toMatchSnapshot() Snapshot name: `domToReact converts multiple DOM nodes to React 1` - Snapshot - 6 + Received + 20 [ - <p> - foo - </p>, - <p> - bar - </p>, + { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": "0", + "props": { + "children": "foo", + }, + "type": "p", + }, + { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": "1", + "props": { + "children": "bar", + }, + "type": "p", + }, ] at Object.<anonymous> (__tests__/dom-to-react.test.tsx:34:27)
domToReact › converts <textarea> correctly: __tests__/dom-to-react.test.tsx#L40
expect(received).toMatchSnapshot() Snapshot name: `domToReact converts <textarea> correctly 1` - Snapshot - 3 + Received + 11 - <textarea - defaultValue="foo" - /> + { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": null, + "props": { + "children": undefined, + "defaultValue": "foo", + }, + "type": "textarea", + } at Object.<anonymous> (__tests__/dom-to-react.test.tsx:40:26)
domToReact › does not escape <script> content: __tests__/dom-to-react.test.tsx#L45
expect(received).toMatchSnapshot() Snapshot name: `domToReact does not escape <script> content 1` - Snapshot - 4 + Received + 10 - <script - dangerouslySetInnerHTML={ { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": null, + "props": { + "children": undefined, + "dangerouslySetInnerHTML": { "__html": "alert(1 < 2);", - } + }, + }, + "type": "script", } - /> at Object.<anonymous> (__tests__/dom-to-react.test.tsx:45:26)
domToReact › does not escape <style> content: __tests__/dom-to-react.test.tsx#L50
expect(received).toMatchSnapshot() Snapshot name: `domToReact does not escape <style> content 1` - Snapshot - 6 + Received + 12 - <style - dangerouslySetInnerHTML={ - { + { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": null, + "props": { + "children": undefined, + "dangerouslySetInnerHTML": { "__html": "body > .foo { color: #f00; }", - } - } - /> + }, + }, + "type": "style", + } at Object.<anonymous> (__tests__/dom-to-react.test.tsx:50:26)
domToReact › skips doctype and comments: __tests__/dom-to-react.test.tsx#L72
expect(received).toMatchSnapshot() Snapshot name: `domToReact skips doctype and comments 1` - Snapshot - 6 + Received + 20 [ - <p> - foo - </p>, - <p> - foo - </p>, + { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": "1", + "props": { + "children": "foo", + }, + "type": "p", + }, + { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": "3", + "props": { + "children": "foo", + }, + "type": "p", + }, ] at Object.<anonymous> (__tests__/dom-to-react.test.tsx:72:27)
domToReact › converts SVG element with viewBox attribute: __tests__/dom-to-react.test.tsx#L79
expect(received).toMatchSnapshot() Snapshot name: `domToReact converts SVG element with viewBox attribute 1` - Snapshot - 6 + Received + 12 - <svg - id="foo" - viewBox="0 0 512 512" - > - Inner - </svg> + { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": null, + "props": { + "children": "Inner", + "id": "foo", + "viewBox": "0 0 512 512", + }, + "type": "svg", + } at Object.<anonymous> (__tests__/dom-to-react.test.tsx:79:26)
domToReact › converts custom element with attributes: __tests__/dom-to-react.test.tsx#L84
expect(received).toMatchSnapshot() Snapshot name: `domToReact converts custom element with attributes 1` - Snapshot - 6 + Received + 12 - <custom-element - class="myClass" - custom-attribute="value" - style={ { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": null, + "props": { + "children": undefined, + "class": "myClass", + "custom-attribute": "value", + "style": { "OTransition": "all .5s", "lineHeight": "1", - } + }, + }, + "type": "custom-element", } - /> at Object.<anonymous> (__tests__/dom-to-react.test.tsx:84:26)
transform option › can wrap all elements: __tests__/dom-to-react.test.tsx#L194
expect(received).toMatchSnapshot() Snapshot name: `transform option can wrap all elements 1` - Snapshot - 20 + Received + 77 - <div> - <ol> - <div> - <li> - <div> - One - </div> - </li> - </div> - <div> - <li - value="2" - > - <div> - Two - </div> - </li> - </div> - </ol> - </div> + { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": "0", + "props": { + "children": { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": null, + "props": { + "children": [ + { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": "0", + "props": { + "children": { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": "0", + "props": { + "children": { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": "0", + "props": { + "children": "One", + }, + "type": "div", + }, + }, + "type": "li", + }, + }, + "type": "div", + }, + { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": "1", + "props": { + "children": { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": "1", + "props": { + "children": { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": "0", + "props": { + "children": "Two", + }, + "type": "div", + }, + "value": "2", + }, + "type": "li", + }, + }, + "type": "div", + }, + ], + }, + "type": "ol", + }, + }, + "type": "div", + } at Object.<anonymous> (__tests__/dom-to-react.test.tsx:194:26)
domToReact › when React >=16 › preserves unknown attributes: __tests__/dom-to-react.test.tsx#L202
expect(received).toMatchSnapshot() Snapshot name: `domToReact when React >=16 preserves unknown attributes 1` - Snapshot - 6 + Received + 12 - <custom-element - class="myClass" - custom-attribute="value" - style={ { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": null, + "props": { + "children": undefined, + "class": "myClass", + "custom-attribute": "value", + "style": { "OTransition": "all .5s", "lineHeight": "1", - } + }, + }, + "type": "custom-element", } - /> at Object.<anonymous> (__tests__/dom-to-react.test.tsx:202:28)
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636