mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
fixes #46838 This PR fixes the snapshot test failure of examples `with-jest` and `with-jest-babel`. I have tested by running tests in the files generated by these 2 commands: ``` $ npx create-next-app@latest --example https://github.com/rayrw/next.js/tree/fix-with-jest-example-test-failure/examples/with-jest fix-snapshots-failure $ npx create-next-app@latest --example https://github.com/rayrw/next.js/tree/fix-with-jest-example-test-failure/examples/with-jest-babel fix-snapshots-failure ```
105 lines
2.1 KiB
Plaintext
105 lines
2.1 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`renders homepage unchanged 1`] = `
|
|
<div>
|
|
<div
|
|
class="container"
|
|
>
|
|
<main>
|
|
<h1
|
|
class="title"
|
|
>
|
|
Welcome to
|
|
<a
|
|
href="https://nextjs.org"
|
|
>
|
|
Next.js!
|
|
</a>
|
|
</h1>
|
|
<p
|
|
class="description"
|
|
>
|
|
Get started by editing
|
|
<code>
|
|
pages/index.js
|
|
</code>
|
|
</p>
|
|
<div
|
|
class="grid"
|
|
>
|
|
<a
|
|
class="card"
|
|
href="https://nextjs.org/docs"
|
|
>
|
|
<h3>
|
|
Documentation →
|
|
</h3>
|
|
<p>
|
|
Find in-depth information about Next.js features and API.
|
|
</p>
|
|
</a>
|
|
<a
|
|
class="card"
|
|
href="https://nextjs.org/learn"
|
|
>
|
|
<h3>
|
|
Learn →
|
|
</h3>
|
|
<p>
|
|
Learn about Next.js in an interactive course with quizzes!
|
|
</p>
|
|
</a>
|
|
<a
|
|
class="card"
|
|
href="https://github.com/vercel/next.js/tree/canary/examples"
|
|
>
|
|
<h3>
|
|
Examples →
|
|
</h3>
|
|
<p>
|
|
Discover and deploy boilerplate example Next.js projects.
|
|
</p>
|
|
</a>
|
|
<a
|
|
class="card"
|
|
href="https://vercel.com/new"
|
|
>
|
|
<h3>
|
|
Deploy →
|
|
</h3>
|
|
<p>
|
|
Instantly deploy your Next.js site to a public URL with Vercel.
|
|
</p>
|
|
</a>
|
|
</div>
|
|
</main>
|
|
<footer
|
|
class="footer"
|
|
>
|
|
<a
|
|
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
|
|
rel="noopener noreferrer"
|
|
target="_blank"
|
|
>
|
|
Powered by
|
|
|
|
<span
|
|
class="logo"
|
|
>
|
|
<img
|
|
alt="Vercel Logo"
|
|
data-nimg="1"
|
|
decoding="async"
|
|
height="16"
|
|
loading="lazy"
|
|
src="/vercel.svg"
|
|
style="color: transparent;"
|
|
width="72"
|
|
/>
|
|
</span>
|
|
</a>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
`;
|