• 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

stateless-session-bean

apache-camel

nchan

typeclass

wso2-am

configobj

openssl-engine

windows-phone-7

frp

client-side-attacks

container-image

qnx-neutrino

tsung

promql

azure-cloud-shell

android-multiple-apk

cmake

botpress

python-poetry

service-tier

ronin

tablesaw

teensy

fn

javasound

userprincipal

void-t

.net-spark

intellij-15

recycle

About Contact Privacy policy Terms and conditions