• Categories
    • python
    • javascript
    • java
    • reactjs
    • c#
    • android
    • html
    • node.js
    • php
    • r
    • css
    • flutter
    • c++
    • pandas
    • sql
    • python-3.x
    • typescript
    • angular
    • django
    • mysql
    • ios
    • json
    • swift
    All Categories

Category "void"

In Jest, how do I mock a Promise of void?

I'm using Jest and Typescript. I have a async function that returns nothing (void). How do I mock returning void? I tried the below const myMockFn = jest.fn(

  • « Previous
  • Next »

Other Categories

android-ktx

phonegap-plugins

panel

emm

lift

ngrok

jea

xdp-bpf

subst

daydream

jqgrid

room

userdetailsservice

cydia-substrate

virtualization

gsp

debian-jessie

ios15

android-drawable

add

mixitup

avaudiopcmbuffer

gnuwin32

mockk-verify

xamarin.forms.shell

pymongo

symfony-2.4

playbin2

directshow

invoices

About Contact Privacy policy Terms and conditions