mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-05 17:07:10 +03:00
208a54529d
Closes https://github.com/microsoft/playwright/issues/32853 Vite turns the shorthand fragment notation `<></>` into `import { Fragment } from "react"; <Fragment></Fragment>`. On the Node.js side of things, this `react` import resolves to our mock version of React, which currently mocks `Fragment` as `{}`. Currently, we pass that straight to `React.createElement`, which throws an error. The fix is to make our `Fragment` mock detectable with a tag, and when we render it replace it with the real `__pwReact.Fragment`. |
||
---|---|---|
.. | ||
.npmignore | ||
cli.js | ||
hooks.d.ts | ||
hooks.mjs | ||
index.d.ts | ||
index.js | ||
package.json | ||
README.md | ||
register.d.ts | ||
register.mjs | ||
registerSource.mjs |
BEWARE This package is EXPERIMENTAL and does not respect semver.
Read more at https://playwright.dev/docs/test-components