Closed LkeMitchll closed 3 years ago
@LkeMitchll would you be interested in creating a repo based on npx @sveltech/routify init --no-example
and a basic test. It would help me get to this sooner.
@LkeMitchll would you be interested in creating a repo based on
npx @sveltech/routify init --no-example
and a basic test. It would help me get to this sooner.
@jakobrosenberg Here you go! GitHub
Been at this today, but I can't seem to get symlinks working in Jest. If I run npm link @sveltech/routify
, Jest doesn't use the linked Routify module. In fact, I have no idea where Jest is getting Routify from.
Is this still an issue? @LkeMitchll
Is this still an issue? @LkeMitchll
Apologies, but I switched stacks away from routify, so I don't know. I will close this for now, if a new person has the same issue they can probably find this old issue.
I think this is a bug, but I can't be sure. I'm using svelte-testing-library & jest to test my work-in-progress website. Unfortunately my test fails when I try to test a component that uses
$isActive('/index')
or$url
:bug description Using the
$isActive()
or$url
helpers in a component while using svelte-testing-library to test results in the following error:component snippet:
test:
There is a branch containing the full site here: GitHub
package.json GitHub
version
screenshot