rsnext/test/unit/__snapshots__/page-route-sorter.test.js.snap
Joe Haddad ba5e6943fa
[Experimental] Catch-all Route Support (#9416)
* 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
2019-11-14 23:19:41 -08:00

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]",
]
`;