build(deps-dev): bump react, react-dom and @types/react #4568
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#L71
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:71:27)
|
domToReact › converts SVG element with viewBox attribute:
__tests__/dom-to-react.test.tsx#L78
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:78:26)
|
domToReact › converts custom element with attributes:
__tests__/dom-to-react.test.tsx#L82
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:82:55)
|
domToReact › converts LaTeX:
__tests__/dom-to-react.test.tsx#L86
expect(received).toMatchSnapshot()
Snapshot name: `domToReact converts LaTeX 1`
- Snapshot - 5
+ Received + 11
[
- <span
- className="math"
- >
- \left(\right)\rD\rightarrow\reals\ni
- </span>,
+ {
+ "$$typeof": Symbol(react.transitional.element),
+ "_owner": null,
+ "_store": {},
+ "key": "0",
+ "props": {
+ "children": "\left(\right)\rD\rightarrow\reals\ni",
+ "className": "math",
+ },
+ "type": "span",
+ },
"
",
]
at Object.<anonymous> (__tests__/dom-to-react.test.tsx:86:47)
|
transform option › can wrap all elements:
__tests__/dom-to-react.test.tsx#L196
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:196:26)
|
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|