Rayrun
← Back to Discord Forum

Svelte component test error: [vite]: Rollup failed to resolve import "$app/navigation"

I am trying to test Svelte components using @playwright/experimental-ct-svelte with no luck. This error seems related to https://github.com/sveltejs/kit/issues/1485. Is there a solution, or a better library for testing Svelte components?

Minimal example: https://github.com/esafak/playwright_svelte_ts

This thread is trying to answer question "Is there a solution to the error encountered while testing Svelte components using `@playwright/experimental-ct-svelte`, or is there a better library for testing Svelte components?"

0 replies

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.