https://github.com/terrymun/nx-nextjs-link-behavior-demo
Demo of Next.js experimental Link behavior served with Nx
https://github.com/terrymun/nx-nextjs-link-behavior-demo
Last synced: 11 months ago
JSON representation
Demo of Next.js experimental Link behavior served with Nx
- Host: GitHub
- URL: https://github.com/terrymun/nx-nextjs-link-behavior-demo
- Owner: terrymun
- Created: 2022-09-09T08:42:29.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-21T12:58:52.000Z (almost 4 years ago)
- Last Synced: 2025-08-25T09:11:22.172Z (11 months ago)
- Language: CSS
- Size: 377 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nx Next.js Link behavior demo
This project was generated using [Nx](https://nx.dev) and it is used to demonstrate Jest failing to render `` component with experimental behavior.
The rendered output of this following template:
```tsx
Link element with new behavior
```
...is different when checking on Jest vs when serving the site via `yarn start`.
## Rendered output via Jest (incorrect)
This can be verified by checking the inline snapshot generated on `index.spec.tsx`:
```tsx
Link element with new behavior
```
## Actual rendered output on `yarn start` (correct)
This can be verified by running `yarn start` and checking the markup of the served page:
```tsx
Link element with new behavior
```