Skip to content
Merged
Prev Previous commit
Next Next commit
docs: fix broken links from directory restructure
- Fix cookbook.md link to deleted examples/intro.md
- Fix artifacts.md, hooks-cleanup.md, lifecycle.md links to renamed setup/cleanup files
- Fix ChooseYourJourney component links to new directory paths

Build passes with zero broken links.
  • Loading branch information
thomhurst committed Feb 26, 2026
commit 060c3fa77cf09c11b95698a5aa855c3a96cb0785
2 changes: 1 addition & 1 deletion docs/docs/guides/cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -774,4 +774,4 @@ These cookbook recipes cover the most common testing scenarios. You can adapt th
- **Exception Testing**: Use TUnit's fluent exception assertions
- **Integration Tests**: Test with real databases, containers, or file systems

For more examples, check out the [examples section](../examples/intro) in the documentation.
For more examples, check out the [ASP.NET Core](../examples/aspnet) and [Aspire](../examples/aspire) integration guides.
2 changes: 1 addition & 1 deletion docs/docs/writing-tests/artifacts.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,5 +446,5 @@ The exact behavior depends on your test runner configuration and CI/CD platform.
## See Also

- [Test Context](./test-context.md) - Overview of TestContext
- [Test Lifecycle Hooks](./setup.md) - Using Before/After hooks
- [Test Lifecycle Hooks](./hooks-setup.md) - Using Before/After hooks
- [CI/CD Reporting](../execution/ci-cd-reporting.md) - Integrating with CI systems
2 changes: 1 addition & 1 deletion docs/docs/writing-tests/hooks-cleanup.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public async Task AsyncCleanup() // ✅ Valid - asynchronous hook
### Hook Parameters

:::info
`[After]` hooks accept the same parameters as `[Before]` hooks. See [Setup Hooks -- Hook Parameters](setup.md#hook-parameters) for the full reference.
`[After]` hooks accept the same parameters as `[Before]` hooks. See [Setup Hooks Hook Parameters](hooks-setup.md#hook-parameters) for the full reference.
:::

A common pattern in cleanup hooks is checking the test result to perform conditional cleanup:
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/writing-tests/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ All `[After]` hooks, `ITestEndEventReceiver` events, and disposal methods run ev

## Related Pages

- [Test Set Ups](setup.md) - Detailed guide to `[Before]` hooks
- [Test Clean Ups](cleanup.md) - Detailed guide to `[After]` hooks
- [Test Set Ups](hooks-setup.md) - Detailed guide to `[Before]` hooks
- [Test Clean Ups](hooks-cleanup.md) - Detailed guide to `[After]` hooks
- [Event Subscribing](event-subscribing.md) - Event receiver interfaces
- [Property Injection](property-injection.md) - Property injection and `IAsyncInitializer`
- [Dependency Injection](dependency-injection.md) - DI integration
Expand Down
10 changes: 5 additions & 5 deletions docs/src/components/ChooseYourJourney/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const journeys: JourneyCard[] = [
{ label: 'Installation', href: '/docs/getting-started/installation' },
{ label: 'Write Your First Test', href: '/docs/getting-started/writing-your-first-test' },
{ label: 'Philosophy', href: '/docs/guides/philosophy' },
{ label: 'Core Concepts', href: '/docs/test-authoring/things-to-know' },
{ label: 'Core Concepts', href: '/docs/writing-tests/things-to-know' },
],
},
{
Expand All @@ -46,8 +46,8 @@ const journeys: JourneyCard[] = [
links: [
{ label: 'Assertions Library', href: '/docs/assertions/library' },
{ label: 'Assertion Basics', href: '/docs/assertions/getting-started' },
{ label: 'Data Driven Testing', href: '/docs/test-authoring/arguments' },
{ label: 'Test Lifecycle', href: '/docs/test-lifecycle/setup' },
{ label: 'Data Driven Testing', href: '/docs/writing-tests/arguments' },
{ label: 'Test Lifecycle', href: '/docs/writing-tests/hooks-setup' },
],
},
{
Expand All @@ -58,8 +58,8 @@ const journeys: JourneyCard[] = [
links: [
{ label: 'Best Practices', href: '/docs/guides/best-practices' },
{ label: 'Performance Benchmarks', href: '/docs/benchmarks' },
{ label: 'Parallel Execution', href: '/docs/parallelism/not-in-parallel' },
{ label: 'Customization', href: '/docs/customization-extensibility/data-source-generators' },
{ label: 'Parallel Execution', href: '/docs/execution/not-in-parallel' },
{ label: 'Customization', href: '/docs/extending/data-source-generators' },
],
},
];
Expand Down
Loading