Michael Cousins

Results 35 issues of Michael Cousins

This is a documentation companion to testing-library/svelte-testing-library#325. We're introducing a few minor, though technically breaking, changes to the API in the upcoming `v5` release (which should be triggered upon merge...

## Overview This PR follows up the option cleanup of #325 with some test cleanup. ## Change log - Remove an unnecessary cleanup test skip - Remove a redundant `fireEvent`...

## Overview #328 moved exports from `pure.js` to `index.js` and switched everything to wildcard exports: https://github.com/testing-library/svelte-testing-library/blob/0593819ca0e083eadf536d20d9d61944d594fb91/src/index.js#L15-L16 If two wildcard exports emit the same export, [neither will be included](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export). > There...

## Overview The `render` function of `svelte-testing-library` has two "modes": - Pass props, e.g. `render(Comp, { name: 'hello' })` - Pass [component options][], e.g. `render(Comp, { intro: true, props: {...

## Overview The `render` function provides two options for changing how a component gets rendered into the DOM: `componentOptions.target` and `renderOptions.container`. It returns a `result.container` element. ```ts const { container...

### Before You File a Bug Report Please Confirm You Have Done The Following... - [X] I have tried restarting my IDE and the issue persists. - [X] I have...

bug
help wanted

- [ ] Check if updating to the latest Preact version resolves the issue **Describe the bug** Hello! I'm coming here from testing-library/svelte-testing-library#381, where a user reported interop issues when...

known issue
11.x

### Reproduction example https://codesandbox.io/p/github/mcous/user-event-clipboard-leak/main?import=true ### Prerequisites 1. Configure Vitest in non-globals mode (the default) 2. Call `userEvent.setup()` in a test 3. Copy something to the clipboard in a test 4....

enhancement
environment

### Before You File a Bug Report Please Confirm You Have Done The Following... - [x] I have tried restarting my IDE and the issue persists. - [x] I have...

perf