Skip to content

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

Filter by

121 results
 (57 ms)

121 results

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

Assuming you have: script // Component.svelte import { fade } from svelte/transition ; /script div transition:fade|global Hello /div When running a test: import { render, screen } from ...
  • jjagielka
  • 1
  • Opened 
    11 days ago
  • #444

let s have the following (Svelte4) generic component called Table.svelte script lang= ts generics= T extends { selected?: boolean; name?: string } export let data: T[]; /script Let s have our table.spec.ts ...
missing reproduction
  • axel7083
  • 1
  • Opened 
    12 days ago
  • #443

We ve had a lot of great feedback, issue reports, ideas, etc. in #284. It would be great to incorporate those contributions into the documentation
  • mcous
  • Opened 
    26 days ago
  • #442

The current Svelte Testing Library example documentation uses the legacy Svelte syntax. With Svelte 5 s stable release and the introduction of runes, it would be wonderful if the examples could be updated ...
  • shinokada
  • 1
  • Opened 
    on May 29
  • #441

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 ...
missing reproduction
  • LeoDoby
  • 3
  • Opened 
    on Apr 18
  • #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 ...
wontfix
  • AntonioVentilii
  • 2
  • Opened 
    on Apr 15
  • #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 ...
wontfix
  • theetrain
  • 2
  • 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
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! 
Restrict your search to the title by using the in:title qualifier.
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! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub