menu

Testing Library

Simple and complete DOM testing utilities that encourage good testing practices.

Channels
Chat
view-forward
# All channels
view-forward
# General
view-forward
# General Help
view-forward
# Angular Help
view-forward
# Cypress Help
view-forward
# DOM Help
view-forward
# React Help
view-forward
# Svelte Help
view-forward
# TestCafe Help
view-forward
# Vue Help
view-forward
Team
Posts
Members
Info

svelte-testing-library onMount example?

I'm a noob to svelte and to svelte-testing-library. I have an app that makes a fetch request for some content inside onMount. I'm looking for how to wait for the mocked fetch to be resolved and its content rendered before making assertions.

thumbsup
0
message-simple
2