ba5e6943fa
* Catch-all Route Support * Add SSR tests * Add additional test * Add unit tests * Put the feature behind a flag * Apply suggestions from code review Co-Authored-By: JJ Kasper <jj@jjsweb.site> * Fix test
22 lines
414 B
Text
22 lines
414 B
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`getSortedRoutes correctly sorts required slugs 1`] = `
|
|
Array [
|
|
"/",
|
|
"/apples/[ab]/[cd]/ef",
|
|
"/blog/abc",
|
|
"/blog/abc/post",
|
|
"/blog/abc/[id]",
|
|
"/blog/[id]",
|
|
"/blog/[id]/comments/[cid]",
|
|
"/foo/[d]/bar/baz/[f]",
|
|
"/p/[...rest]",
|
|
"/p2/[id]",
|
|
"/p2/[id]/abc",
|
|
"/p2/[...rest]",
|
|
"/posts",
|
|
"/posts/[id]",
|
|
"/[root-slug]",
|
|
"/[...rest]",
|
|
]
|
|
`;
|