David Peng

Results 10 comments of David Peng

> I'm currently using [svelte-htm](https://github.com/kenoxa/svelte-htm) and it works well 👍 @ivanhofer Can you share how you use `svelte-htm`? This error pops out when I try to pass component to the...

@benmccann Thank you for your input. I'll dive into the issue and see how I can help to resolve that.

+1 for this. I need to handle single select like this at this moment: ```ts import type { DispatchEvents } from 'svelte-multiselect' const updateSelected = ( event: CustomEvent ): string...

> @davipon Good to know there's interest. > > For now, [wouldn't this](https://svelte.dev/repl/096d40c32f5c4f03b646184490dcb40c?version=3.48.0) be a simpler workaround for your use case? > > ```svelte > > import MultiSelect from 'svelte-multiselect'...

> Thanks for bringing this up and for the nice REPL repro. This is not intended behavior. I'm pretty sure this is a consequence of #123 which added an extra...

I've recently tackled some problems when testing different svelte packages in Vitest: [janosh/svelte-multiselect#48](https://github.com/janosh/svelte-multiselect/issues/48#issuecomment-1054797874). My DX improves a ton after I switched from Jest to Vitest, so I'm considering writing an...

@benmccann had created a discussion here: https://github.com/sveltejs/kit/discussions/5285 To make Vitest an option in `create-svelte`.

I have limited knowledge about testing forms with `use:enhance` since we're not using SSR in my work project. Maybe e2e testing is a better approach. Do you have a repro...

Sadly, no. 😅 I discussed with @benmccann the pain of testing two-way binding, use directive, context API [at discord](https://discord.com/channels/457912077277855764/1018533398492487821/1019093945520754689).

We can create wrapper components for cases like two-way binding, named slots, and actions like this write-up from Swyx two years ago: [Testing and Debugging Svelte](https://github.com/svelte-society/recipes-mvp/blob/2c7587ad559b3ee22a0caf5e1528bbac34dd475d/testing.md#debugging-svelte-apps-in-vs-code). (It's worth checking even...