Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a $test alias in the SvelteKit configuration to improve import paths for test utilities and components. The alias maps to src/testing, replacing relative paths like ../../testing/ with the cleaner $test/ prefix across all test files and documentation.
- Adds
$testalias configuration insvelte.config.jspointing tosrc/testing - Updates all test file imports to use the new
$testalias - Updates documentation examples in
AGENTS.mdto reflect the new import pattern
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| svelte.config.js | Adds the $test alias configuration mapping to src/testing directory |
| src/lib/utils.test.ts | Replaces relative import path with $test alias |
| src/lib/kernel/calculateState.test.ts | Replaces relative import path with $test alias |
| src/lib/kernel/calculateHref.test.ts | Replaces relative import path with $test alias |
| src/lib/kernel/StockHistoryApi.svelte.test.ts | Replaces relative import path with $test alias |
| src/lib/kernel/RouterEngine.svelte.test.ts | Replaces relative import path with $test alias |
| src/lib/kernel/LocationLite.svelte.test.ts | Replaces relative import path with $test alias |
| src/lib/kernel/LocationFull.test.ts | Replaces relative import path with $test alias |
| src/lib/kernel/InterceptedHistoryApi.svelte.test.ts | Replaces relative import path with $test alias |
| src/lib/behaviors/active.svelte.test.ts | Replaces relative import path with $test alias |
| src/lib/Router/Router.svelte.test.ts | Replaces relative import path with $test alias |
| src/lib/Route/Route.svelte.test.ts | Replaces relative import paths with $test alias |
| src/lib/LinkContext/LinkContext.svelte.test.ts | Replaces relative import path with $test alias |
| src/lib/Link/Link.svelte.test.ts | Replaces relative import path with $test alias |
| src/lib/Fallback/Fallback.svelte.test.ts | Replaces relative import path with $test alias |
| AGENTS.md | Updates documentation examples to use $test alias instead of relative paths |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.