-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
57 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/next/src/client/components/parallel-route-default-not-found.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { notFound } from './not-found' | ||
|
||
export default function ParallelRouteDefaultNotFound() { | ||
notFound() | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/next/src/client/components/parallel-route-default-slot.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function ParallelRouteDefaultSlot() { | ||
return null | ||
} |
5 changes: 0 additions & 5 deletions
5
packages/next/src/client/components/parallel-route-default.tsx
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
test/e2e/app-dir/parallel-routes-missing-slot/index.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { createNextDescribe } from 'e2e-utils' | ||
|
||
createNextDescribe( | ||
'app dir - parallel routes missing slot', | ||
{ | ||
files: __dirname, | ||
skipDeployment: true, | ||
}, | ||
({ next }) => { | ||
it('should only render the children slot when the custom slot is missing', async () => { | ||
const browser = await next.browser('/') | ||
expect(await browser.elementByCss('body').text()).toBe( | ||
'@children rendered' | ||
) | ||
expect(await browser.hasElementByCssSelector('#children-slot')).toBe(true) | ||
}) | ||
} | ||
) |
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
test/e2e/app-dir/parallel-routes-not-found/parallel-routes-not-found.test.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.