import './index.js' | |
import { fetchMock } from '@bundled-es-modules/fetch-mock'; | |
fetchMock.post('/', async function() { | |
// Wait 1s before returning the content so we can see the spinner in action. | |
return await new Promise(res => setTimeout(() => res({count: Math.floor(Math.random()*2000)}), 1000)) | |
}); |