• 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

advanced-threat-protection

pymodbustcp

drupal-theming

spring-security-ldap

dwr

firebreath

bezier

rsh

devise-token-auth

ngx-select-dropdown

shapes

uniface

size-reduction

office-ui-fabric-react

nslayoutconstraint

jpgraph

chrome-automation-extension

system.reactive

container-image

faraday

pg-hba.conf

datepicker

dynamic-class-creation

coinbase-api

angular-daterangepicker

desolve

droppable

ie8-compatibility-mode

sqlpubwiz

uipath-apps

About Contact Privacy policy Terms and conditions