rsnext/test/e2e/app-dir
Zack Tanner 5c9ea1c575
implement unstable_rethrow (#65831)
This implements an API to re-throw errors that are intended to be caught
by Next.js, so that they are not caught by your code.

RFC: https://github.com/vercel/next.js/discussions/64076

<!-- Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change(s) that you're making:

## For Contributors

### Improving Documentation

- Run `pnpm prettier-fix` to fix formatting issues before opening the
PR.
- Read the Docs Contribution Guide to ensure your contribution follows
the docs guidelines:
https://nextjs.org/docs/community/contribution-guide

### Adding or Updating Examples

- The "examples guidelines" are followed from our contributing doc
https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
- Make sure the linting passes by running `pnpm build && pnpm lint`. See
https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md

### Fixing a bug

- Related issues linked using `fixes #number`
- Tests added. See:
https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md

### Adding a feature

- Implements an existing feature request or RFC. Make sure the feature
request has been accepted for implementation before opening a PR. (A
discussion must be opened, see
https://github.com/vercel/next.js/discussions/new?category=ideas)
- Related issues/discussions are linked using `fixes #number`
- e2e tests added
(https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
- Documentation added
- Telemetry added. In case of a feature if it's used or not.
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md


## For Maintainers

- Minimal description (aim for explaining to someone not on the team to
understand the PR)
- When linking to a Slack thread, you might want to share details of the
conclusion
- Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
- Add review comments if necessary to explain to the reviewer the logic
behind a change

### What?

### Why?

### How?

Closes NEXT-
Fixes #

-->

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Ahmed Abdelbaset <A7med3bdulBaset@gmail.com>
Co-authored-by: Janka Uryga <lolzatu2@gmail.com>
2024-05-22 07:58:36 -07:00
..
_allow-underscored-root-directory Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
actions Update React from 04b058868c to 81c5ff2e04 (#65869) 2024-05-22 14:46:57 +02:00
actions-allowed-origins Update React from 04b058868c to 81c5ff2e04 (#65869) 2024-05-22 14:46:57 +02:00
actions-navigation Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app [Breaking] disable client router cache for page segments (#66039) 2024-05-21 13:54:23 -07:00
app-a11y Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-alias Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-basepath Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-basepath-custom-server Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-client-cache [Breaking] disable client router cache for page segments (#66039) 2024-05-21 13:54:23 -07:00
app-compilation Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-config-crossorigin Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-css Update React from 04b058868c to 81c5ff2e04 (#65869) 2024-05-22 14:46:57 +02:00
app-css-pageextensions Update React from 04b058868c to 81c5ff2e04 (#65869) 2024-05-22 14:46:57 +02:00
app-custom-cache-handler Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-edge Remove process auto polyfill in edge runtime (#65751) 2024-05-15 12:19:47 +02:00
app-edge-root-layout Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-esm-js Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-external feat: remove font family hashing in next/font css (#53608) 2024-05-14 18:22:43 -07:00
app-fetch-deduping feat(log): improve dev/build logs (#62946) 2024-03-26 15:33:09 +01:00
app-invalid-revalidate Add missing 'prerenderEarlyExit: false' in tests (#66032) 2024-05-21 07:51:38 -07:00
app-middleware fix middleware cookie initialization (#65820) 2024-05-15 16:54:49 -07:00
app-prefetch [Breaking] disable client router cache for page segments (#66039) 2024-05-21 13:54:23 -07:00
app-prefetch-false Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-prefetch-false-loading Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-prefetch-static Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-rendering Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-routes [Breaking] Disable automatic static generation for route handlers (#65825) 2024-05-20 16:25:02 -07:00
app-routes-client-component Update React from 04b058868c to 81c5ff2e04 (#65869) 2024-05-22 14:46:57 +02:00
app-routes-subrequests Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-routes-trailing-slash Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-simple-routes Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-static [Breaking] Disable automatic static generation for route handlers (#65825) 2024-05-20 16:25:02 -07:00
app-validation Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
asset-prefix fix: bundle fetching with asset prefix (#63627) 2024-03-29 16:38:24 -07:00
asset-prefix-with-basepath update turbopack (#64347) 2024-04-11 19:16:27 +02:00
async-component-preload Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
autoscroll-with-css-modules Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
back-button-download-bug Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
build-size Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
chunk-loading chore: update prettier to 3.2.5 (#65092) 2024-05-08 21:47:14 +02:00
conflicting-page-segments Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
create-root-layout Update React from 04b058868c to 81c5ff2e04 (#65869) 2024-05-22 14:46:57 +02:00
crypto-globally-available Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
css-client-side-nav-parallel-routes Tweak flakey metadata error tests (#66060) 2024-05-21 21:53:16 -05:00
css-modules-scoping Upgrade lightningcss, disable grid prefixing (#65986) 2024-05-21 19:39:46 +00:00
css-order disable production chunking in dev (#64488) 2024-04-15 21:22:22 +02:00
draft-mode Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
dynamic chore: update prettier to 3.2.5 (#65092) 2024-05-08 21:47:14 +02:00
dynamic-css Preload all chunks for next/dynamic in SSR (#65486) 2024-05-08 19:30:42 +02:00
dynamic-data add missing "prerenderEarlyExit: false" to dynamic-data test 2024-05-21 12:08:37 +02:00
dynamic-href Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
dynamic-in-generate-params Remove auto appending xml extension to dynamic sitemap routes (#65507) 2024-05-09 11:05:24 +02:00
dynamic-interception-route-revalidate fix router revalidation behavior for dynamic interception routes (#63768) 2024-03-28 13:35:22 +00:00
dynamic-requests ignore fully dynamic requests on server side (#62949) 2024-03-11 08:41:33 +00:00
ecmascript-features fix(next-swc): Fix SWC env target - include option (#65693) 2024-05-13 16:31:36 +00:00
edge-route-catchall Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
edge-route-rewrite Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
edge-runtime-node-compatibility Improve initial setup with new App Router TypeScript project (#64826) 2024-04-26 18:19:50 +02:00
emotion-js Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
error-boundary-navigation Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
errors Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
front-redirect-issue Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
global-error Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
headers-static-bailout Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
hello-world Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
hooks Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
i18n-hybrid Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
import Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
interception-dynamic-segment Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
interception-dynamic-segment-middleware Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
interception-middleware-rewrite Improve initial setup with new App Router TypeScript project (#64826) 2024-04-26 18:19:50 +02:00
interception-route-prefetch-cache Fix test flake (#62379) 2024-02-22 00:19:49 -08:00
interception-routes-root-catchall Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
interoperability-with-pages Update React from 04b058868c to 81c5ff2e04 (#65869) 2024-05-22 14:46:57 +02:00
layout-params Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
loader-file-named-export-custom-loader-error fix: show the error message if images.loaderFile doesn't export a default function (#64036) 2024-04-10 18:11:38 +00:00
logging Fix: strip _rsc query for client navigation rsc request (#65084) 2024-04-28 20:15:38 +00:00
mdx Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
metadata Only apply metadata manifest credentials for preview deployment (#64940) 2024-04-30 20:50:42 +00:00
metadata-dynamic-routes Tweak flakey metadata error tests (#66060) 2024-05-21 21:53:16 -05:00
metadata-edge Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
metadata-json-manifest Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
metadata-suspense Improve initial setup with new App Router TypeScript project (#64826) 2024-04-26 18:19:50 +02:00
metadata-warnings Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
missing-suspense-with-csr-bailout Remove missingSuspenseWithCSRBailout config (#65688) 2024-05-13 23:36:24 +02:00
mjs-as-extension Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
modularizeimports Improve initial setup with new App Router TypeScript project (#64826) 2024-04-26 18:19:50 +02:00
navigation Fix router.refresh missing canonical url override (#65999) 2024-05-20 18:11:07 -07:00
next-after-app unstable_after: support nested unstable_after calls (#65950) 2024-05-20 15:09:16 +00:00
next-after-pages experimental: unstable_after (#65038) 2024-05-20 08:49:53 +00:00
next-config Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
next-font feat: remove font family hashing in next/font css (#53608) 2024-05-14 18:22:43 -07:00
next-image Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
not-found Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
not-found-default Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
options-request short-circuit OPTIONS requests to pages (#65295) 2024-05-20 19:58:48 +00:00
pages-to-app-routing Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
parallel-route-not-found use correct not-found component when triggered from a parallel route (#65343) 2024-05-06 14:46:54 +00:00
parallel-route-not-found-params Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
parallel-routes-and-interception Extract slow tests to avoid wasteful start/stop (#65265) 2024-05-02 13:07:23 +02:00
parallel-routes-and-interception-basepath Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
parallel-routes-breadcrumbs Fix an issue parsing catchall params (#65277) 2024-05-02 18:31:39 +00:00
parallel-routes-catchall Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
parallel-routes-catchall-children-slot Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
parallel-routes-catchall-default Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
parallel-routes-catchall-dynamic-segment Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
parallel-routes-catchall-groups Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
parallel-routes-catchall-slotted-non-catchalls Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
parallel-routes-catchall-specificity fix logic error in parallel route catch-all normalization (#63879) 2024-04-01 08:50:54 -07:00
parallel-routes-layouts parallel routes: support multi-slot layouts (#61115) 2024-01-26 11:46:23 -08:00
parallel-routes-not-found Improve initial setup with new App Router TypeScript project (#64826) 2024-04-26 18:19:50 +02:00
parallel-routes-revalidation Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
parallel-routes-root-slot add explicit test for parallel routes in a root layout (#65338) 2024-05-03 15:05:48 -07:00
parallel-routes-use-selected-layout-segment Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
params-hooks-compat Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
ppr Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
ppr-errors Change default of prerenderEarlyExit to true (#65830) 2024-05-20 12:51:01 -07:00
ppr-full [PPR] Enable incremental adoption (#63847) 2024-05-06 14:55:00 -06:00
ppr-incremental [PPR] Enable incremental adoption (#63847) 2024-05-06 14:55:00 -06:00
ppr-navigations [PPR Nav] Fix flash of loading state during back/forward (#60578) 2024-01-12 14:18:54 -05:00
ppr-unstable-cache [unstable_cache] Don't track dynamic fetches in an unstable_cache callback (#65010) 2024-04-26 18:43:42 +00:00
prefetch-searchparam fix(next): initial prefetch cache not set properly with different search params (#65977) 2024-05-20 15:44:03 +00:00
prefetching-not-found fix navigation applying stale data when triggered from global not found (#62033) 2024-02-14 10:46:31 -08:00
resolve-extensions Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
resource-url-encoding Escape url-unsafe characters in names of app router scripts and styles (#64131) 2024-04-10 17:42:53 -07:00
revalidate-dynamic Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
rewrites-redirects Update React from 04b058868c to 81c5ff2e04 (#65869) 2024-05-22 14:46:57 +02:00
root-layout Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
root-layout-redirect Improve initial setup with new App Router TypeScript project (#64826) 2024-04-26 18:19:50 +02:00
root-layout-render-once Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
route-page-manifest-bug Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
router-autoscroll Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
router-stuck-dynamic-static-segment Improve initial setup with new App Router TypeScript project (#64826) 2024-04-26 18:19:50 +02:00
rsc-basic Update React from 04b058868c to 81c5ff2e04 (#65869) 2024-05-22 14:46:57 +02:00
scss improve tilde test case (#63470) 2024-03-27 06:16:49 +00:00
search-params-react-key Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
searchparams-static-bailout Improve initial setup with new App Router TypeScript project (#64826) 2024-04-26 18:19:50 +02:00
server-actions-relative-redirect Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
server-components-externals Promote and rename server bundling options serverComponentsExternalPackages and bundlePagesExternals (#65421) 2024-05-07 11:19:35 -06:00
set-cookies Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
shallow-routing Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
similar-pages-paths Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
static-generation-status Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
syntax-highlighter-crash Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
taint Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
test-template/{{ toFileName name }} Upgrade lightningcss, disable grid prefixing (#65986) 2024-05-21 19:39:46 +00:00
third-parties Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
trailingslash Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
turbopack-reports Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
underscore-ignore-app-paths Improve initial setup with new App Router TypeScript project (#64826) 2024-04-26 18:19:50 +02:00
unstable-rethrow implement unstable_rethrow (#65831) 2024-05-22 07:58:36 -07:00
use-params Improve initial setup with new App Router TypeScript project (#64826) 2024-04-26 18:19:50 +02:00
use-selected-layout-segment-s Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
webpack-loader-conditions Turbopack: import webpack loader rules conditions (#64205) 2024-04-11 17:35:43 +02:00
with-babel Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
with-exported-function-config Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
x-forwarded-headers Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00