rsnext/test
Zack Tanner efebba80a7
parallel routes: fix @children slots (#60288)
### What?
Our
[docs](https://nextjs.org/docs/app/building-your-application/routing/parallel-routes#convention)
point out that `app/page.js` is equivalent to `app/@children/page.js`,
however in practice this is not the case, and causes type errors when
using `@children` slots as well as incorrect behavior when matching
catch-all routes.

### Why?
- When typechecking, `@children` slots would be added to the typeguard
file for the associated layout, resulting in duplicate identifiers for
the `children` prop
- When determining where to insert catchall slots, the `hasMatchedSlots`
check wasn't considering that the `@children` slot corresponds with the
page component, so matching another page would clobber the previous one.

### How?
- Filters out the `@children` slot when collecting slots for
typechecking
- Filters out the `@children` slot when running the `hasMatchedSlots`
function in the catch-all normalizer

Closes NEXT-1984
2024-01-06 07:24:44 -08:00
..
.stats-app chore: update pnpm to the latest (v8.14.0) (#60295) 2024-01-05 22:12:04 -05:00
development feat(next-core): apply rsc transform in turbopack (#59629) 2024-01-05 16:14:06 +01:00
e2e parallel routes: fix @children slots (#60288) 2024-01-06 07:24:44 -08:00
examples feat(cli): introduce --tailwind flag (#46927) 2023-03-16 16:06:27 +01:00
integration Update flakey test from port re-use (#60291) 2024-01-05 23:44:43 +00:00
lib Allow using ESM pkg with custom incremental cache (#59863) 2024-01-03 14:22:50 +01:00
production transpilePackages should override default settings for external packages (#59385) 2023-12-13 19:04:57 +01:00
unit Always call createPagesMapping for root paths (#60107) 2024-01-02 15:20:05 +01:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
build-turbopack-tests-manifest.d.ts Update Turbopack test manifest from GitHub Actions artifact (#58394) 2023-11-24 16:48:12 +01:00
build-turbopack-tests-manifest.js Update Turbopack test manifest (#59109) 2023-12-01 10:16:28 +00:00
get-test-filter.js Enable PPR tests for test suites (#59030) 2023-11-29 03:22:45 +00:00
jest-setup-after-env.ts Decrease default test timeouts (#56116) 2023-09-27 23:55:20 +00:00
ppr-tests-manifest.json Partial Pre Rendering Headers (#59447) 2023-12-14 13:14:06 -07:00
readme.md
test-file.txt
tsconfig.json chore: extends from shared base tsconfig (#59776) 2023-12-19 18:52:22 +01:00
turbopack-tests-manifest.json feat(next-core): apply rsc transform in turbopack (#59629) 2024-01-05 16:14:06 +01:00

See Testing for more information on how you can run/write/debug tests for Next.js.