Does this library also work with SvelteKit?
Yes, it does. It requires the same setup as a "normal" Svelte project.
Testing file upload component
File upload handler not triggering? Use
jsdom, and make sure
fireEvent.change(...) and not
fireEvent.input(...). It seems that
jsdom (which is at v22.1.0 at the time of this writing) doesn't fake all the
File object as it should.
See svelte-testing-library's issue 219 for more details.