rsnext/test/e2e/app-dir
Shu Ding 59a63eda0a
Add experimental route type checking (#45761)
Implements alpha version of type checking for `Link`'s `href`. To opt-into this feature, `experimental.appDir` and `experimental.typedRoutes` need to be enabled, and the project needs to be using TypeScript.

Once enabled, Next.js will generate a link definition in `.next/types` that contains information of existing routes, and it will be included by TS. In the definition we simply declare types for the `Link` module.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Feature

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

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2023-02-11 15:06:39 +00:00
..
app Use text/plain content-type for RSC responses (#45783)Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> 2023-02-11 13:26:43 +01:00
app-alias Add experimental route type checking (#45761) 2023-02-11 15:06:39 +00:00
app-basepath Prefix basePath in navigate and prefix methods in app router (#45771) 2023-02-10 13:01:00 +00:00
app-css Move CSS tests out of the main test suite (#45765) 2023-02-09 23:22:53 +01:00
app-edge Separate navigation and hooks tests into new test suites (#45766) 2023-02-10 00:38:39 +00:00
app-edge-global Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
app-external Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
app-middleware Change NextInstance.fetch Signature (#44575) 2023-01-05 16:31:03 +01:00
app-prefetch Skip prefetching for bots in app-router too (#45678) 2023-02-07 14:15:10 -08:00
app-rendering Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
app-static Update error message for dynamic = "error" (#45432) 2023-02-01 11:20:35 +00:00
asset-prefix Change NextInstance.fetch Signature (#44575) 2023-01-05 16:31:03 +01:00
async-component-preload Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
autoscroll-with-css-modules Fix issue where layout-router wouldn't auto-scroll if we imported styles or fonts (#45487) 2023-02-07 12:03:18 +00:00
back-button-download-bug Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
create-next-app-template Optimize bundle size for appDir (#42252) 2022-10-31 17:50:35 +00:00
create-root-layout Add project directory rename/remove handling (#44911) 2023-01-18 14:37:40 -08:00
dynamic Separate next/dynamic implementation for app and pages (#45565) 2023-02-04 01:45:35 +00:00
dynamic-href Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
global-error Update test env variable passing (#44912) 2023-01-15 23:20:16 -08:00
head Add warning for head.js with metadata docs link (#45680) 2023-02-07 17:02:40 -08:00
hooks Separate navigation and hooks tests into new test suites (#45766) 2023-02-10 00:38:39 +00:00
import Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
interpolability-with-pages Update test env for E2E deploy mode (#44937) 2023-01-16 15:39:54 -08:00
layout-params Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
mdx Add additional tests for @next/mdx (#45585)Co-authored-by: Shu Ding <g@shud.in> 2023-02-11 13:37:00 +01:00
metadata Support favicon.ico for metadata (#45759 2023-02-09 13:14:09 -08:00
navigation Separate navigation and hooks tests into new test suites (#45766) 2023-02-10 00:38:39 +00:00
next-font Fix issue where layout-router wouldn't auto-scroll if we imported styles or fonts (#45487) 2023-02-07 12:03:18 +00:00
next-image Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
rewrites-redirects Update test env for E2E deploy mode (#44937) 2023-01-16 15:39:54 -08:00
root-layout Test navigation between multiple root layouts (#43762) 2023-01-05 13:27:29 +01:00
router-autoscroll Fix issue where layout-router wouldn't auto-scroll if we imported styles or fonts (#45487) 2023-02-07 12:03:18 +00:00
rsc-basic Revert "Revert "Revert "Revert "Initial support for metadata (#44729)"" (#45113)"" (#45196) 2023-01-24 13:21:59 +00:00
test-template/{{ toFileName name }} Add additional tests for @next/mdx (#45585)Co-authored-by: Shu Ding <g@shud.in> 2023-02-11 13:37:00 +01:00
trailingslash Change NextInstance.fetch Signature (#44575) 2023-01-05 16:31:03 +01:00
use-selected-layout-segment-s Update test env variable passing (#44912) 2023-01-15 23:20:16 -08:00
with-babel Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00