Skip to content

Commit c8ad1ca

Browse files
committed
fix react starter test due to new react version
1 parent dd83724 commit c8ad1ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/jsrepl/tests/playwright/repl-eval.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ test('react starter', async ({ page }) => {
9090
import { createRoot } from 'react-dom/client?dev';
9191
import { useState } from 'react?dev';
9292
93-
const root = createRoot(document.getElementById('root')); // → root = ReactDOMRoot {_internalRoot: FiberRootNode, render: ƒ (children), unmount: ƒ ()}
93+
const root = createRoot(document.getElementById('root')); // → root = ReactDOMRoot {_internalRoot: FiberRootNode, render: ƒ (children, JSCompiler_OptimizeArguments…
9494
root.render(<App />); // → undefined
9595
96-
function App() { // → ƒƒ App({}, {})
96+
function App() { // → ƒƒ App({}, undefined)
9797
const [counter, setCounter] = useState(0); // → counter = 0, setCounter = ƒ dispatchSetState()
9898
9999
return (
@@ -105,7 +105,7 @@ test('react starter', async ({ page }) => {
105105
<button onClick={() => setCounter((x) => x + 1)}>+</button>
106106
</p>
107107
</>
108-
); // → ƒƒ => {$$typeof: Symbol(react.element), type: Symbol(react.fragment), key: null, ref: null, props: {
108+
); // → ƒƒ => {$$typeof: Symbol(react.transitional.element), type: Symbol(react.fragment), key: null, ref: n
109109
}
110110
`
111111
)

0 commit comments

Comments
 (0)