In Users.svelte the application is requesting a list of resources using fetch
. See test Users.spec.js where we directly stub window.fetch
using cy.stub
The tests also show how to respond with mock users after a delay, which allows testing the loading DOM notification.