Skip to content

issues Search Results · repo:testing-library/svelte-testing-library language:JavaScript

Filter by

117 results
 (95 ms)

117 results

intesting-library/svelte-testing-library (press backspace or delete to remove)

Hello, I m encountering the following error when running tests in project1 for a component that imports another component from a local shared package (package/): TypeError: Unknown file extension .svelte ...
  • LeoDoby
  • 1
  • Opened 
    6 days ago
  • #430

Hello, Is there a way to render a component, set the test conditions and then call something like expect(RenderedComponent).toRenderSnippet(...) or .not.toRenderSnippet(...)? For example it( should ...
  • AntonioVentilii
  • 1
  • Opened 
    9 days ago
  • #429

Is there a best practice or a good way to test code that has setup in a parent layout. For example, I used svelte kit latest sample and then tested a page that was using svelte query provider defined in ...
  • niemyjski
  • 1
  • Opened 
    on Feb 22
  • #425

I m having an issue when trying to test custom elements (using jsdom) in Svelte. When I use const result = render(MyComponent, { props: { options: [ v1 , v2 , v3 ] , value: , multiple: false } }); the ...
  • EricVanEldik
  • 3
  • Opened 
    on Dec 30, 2024
  • #419

Is it possible today to test a server-rendered component? My understanding is render will return a mounted component with all initial JS ran (top-level script, effects and use: actions). If not, it would ...
  • theetrain
  • 1
  • Opened 
    on Dec 12, 2024
  • #418

Problem During migration from Svelte 4 to Svelte 5 I am getting error when I try to render component with global transition. If I remove the global transition from p in:slide|global to p in:slide, it ...
wontfix
  • ivenuss
  • 3
  • Opened 
    on Dec 4, 2024
  • #416

Using the docs to setup testing with svelte 5 (sveltekit) and vitest, I am facing the following error. FAIL src/lib/greeter.svelte.test.js no initial greeting TypeError: list.map is not a function ...
  • kvmw
  • 4
  • Opened 
    on Dec 2, 2024
  • #415

Hey there, this is probably user error, but I m confused about it. I ve created a simple wrapper function around render that sets up a user and returns it, along with all the props that render returns. ...
  • crookedneighbor
  • 7
  • Opened 
    on Nov 14, 2024
  • #408

It seems like I ran into a very specific edge case. I can t render a component that - starts with an if block - followed by a table that contains any kind of dynamic content For example, this does ...
  • danieldiekmeier
  • 2
  • Opened 
    on Nov 4, 2024
  • #407

Summary I ve created a Tooltip component that utilizes Skeleton Popup. It works just fine in the browser. However, when I try to test it via Testing Library, I get the below error. Seems like it is caused ...
  • is-sematell
  • 6
  • Opened 
    on Oct 25, 2024
  • #406
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub