roxiness / routify

Automated Svelte routes
https://routify.dev
1.85k stars 86 forks source link

Add test for resolve sibling's child #535

Closed yus-ham closed 7 months ago

yus-ham commented 7 months ago

https://github.com/roxiness/routify/blob/507fe597fbcaffae5c3d56ae7f194ac90566b9c7/lib/runtime/helpers/spec/helpers.spec.js#L7-L16

    const res = traverseNode(adminNode, 'posts/[slug]', mockRouter)
    expect(res.name).toBe('[slug]')

In this test, currently res.name is undefined. Is this normal behavior for resolving sibling's child by relative path?

netlify[bot] commented 7 months ago

Deploy Preview for routify-v3-example canceled.

Name Link
Latest commit 14a2085692b5062fd5eb07eac6a58749b8ded6e3
Latest deploy log https://app.netlify.com/sites/routify-v3-example/deploys/655668776992ac0007216ceb
jakobrosenberg commented 7 months ago

Thanks @yus-ham ! 🙏

jakobrosenberg commented 7 months ago

:tada: This PR is included in version 3.0.0-next.197 :tada:

The release is available on:

Your semantic-release bot :package::rocket: