Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
69 views

I am building a Svelte component library for my project and have run into several issues, particularly when trying to test components with slots. Here's the error I'm facing: Object literal may only ...
Józef Podlecki's user avatar
1 vote
0 answers
341 views

I am trying to test a simple Svelte component using Jest and @testing-library/svelte, but I am encountering the following error: Error ReferenceError: $state is not defined 3 | 4 | it('...
Józef Podlecki's user avatar
0 votes
1 answer
196 views

I'm building a website using Astro and a Svelte integration. For testing I added svelte-testing-library which runs fine when being executed with npm test. Unfortunately after adding the component ...
fxm90's user avatar
  • 1
2 votes
2 answers
2k views

I want to test the props of a Svelte component with Vitest. Component: <script> export let foo </script> <div>{foo}</div> Test: const { component } = render(MyComponent, { ...
Yulian's user avatar
  • 6,849
0 votes
1 answer
920 views

Question about 2 different methods exposed via fireEvent API in the react-testing-library. fireEvent.dblClick fireEvent.doubleClick What's the difference? And is there a recommendation to use one ...
Daniel Caldas's user avatar
4 votes
1 answer
1k views

My component: <script lang="ts"> import { Button } from 'carbon-components-svelte'; import firebase from 'firebase/app'; import { auth } from '../../firebase-shortcut'; import ...
wooseop's user avatar
  • 337