svelte-testing-library
svelte-testing-library copied to clipboard
:chipmunk: Simple and complete Svelte DOM testing utilities that encourage good testing practices
Perhaps this is more svelte API question, but it's not clear how to test component slots, for example: Badge.svelte: ```html ``` Badge.spec.js: ```javascript describe('Badge', () => { test('should render text',...
I'm creating some dynamic SVG content and using svelte:element to output the tags. In order to avoid some rendering issues, I have to specify ``````. As soon as I do...
Because my svelte component is being compiled to a web component I need to do some additional validation on passed in attributes within the `onMount` function. If I throw an...
Hey, so not sure what exactly is the main cause of this. But I figured since I am using testing-library's `render` method this could be the first place to ask....
I am trying to set up svelte-testing-library together with svelte kit and typescript. I followed the documentation, including the instructions for svelte-jester. However, when I write a test, i get...
We should revisit the type changes reverted in #198 Mostly, we should have some typescript tests to make sure those new types are not breaking anything. Related to #195
How can I render a component with `accessors` set to `true`? According to [this](https://github.com/testing-library/svelte-testing-library/issues/3) release, it looks like it should exist. But when I do this: ```javascript const utils =...
Potential solution for #194 Basically, what `render` gets is the class, not instances of that class. Also, for the options, we were not dealing well with the shortcut of passing...
https://github.com/zeke/semantic-pull-requests#readme And indeed it doesn't seem to be running at all. From the README, it seems we should be able to add a `semantic.yml` file with `enabled: false` to bypass...
For some reason, `disabled` prop does not seem to set in testing. It is missing. ## How to re-produce 1. Setup a component (named DisabledButton.svelte) ```svelte Disabled ``` 2. Write...