An open API service indexing awesome lists of open source software.

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

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


```