Skip to content

Commit

Permalink
changeset/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jan 6, 2023
1 parent 3d0b30b commit 4e24a6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-lizards-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Ignore `*.test.js` and `*.spec.js` files in `params` directory
2 changes: 2 additions & 0 deletions documentation/docs/30-advanced/10-advanced-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ export function match(param) {

If the pathname doesn't match, SvelteKit will try to match other routes (using the sort order specified below), before eventually returning a 404.

Each module in the `params` directory corresponds to a matcher, with the exception of `*.test.js` and `*.spec.js` files which may be used to unit test your matchers.

> Matchers run both on the server and in the browser.
## Sorting
Expand Down

0 comments on commit 4e24a6a

Please sign in to comment.