mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
[Cypress](https://www.cypress.io/) recently went GA with a Component Testing offering which supports Next.js. This PR adds a brief section on what and how to use Cypress for component-level testing and updates the example project with a component test. Any feedback on content or the example is welcome, thanks for considering! ## Documentation / Examples - [x] Make sure the linting passes by running `pnpm build && pnpm lint` - [x] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
15 lines
387 B
HTML
15 lines
387 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
<title>Components App</title>
|
|
<!-- Used by Next.js to inject CSS. -->
|
|
<div id="__next_css__DO_NOT_USE__"></div>
|
|
</head>
|
|
<body>
|
|
<div data-cy-root></div>
|
|
</body>
|
|
</html>
|