• 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

authenticode

url-shortener

flutter-onpressed

ms-office-script

asp.net-web-api2

git-index

pose

twilio-conversations

go-get

bouncycastle

oorexx

adobe-launch

fdmemtable

camel-zipfile

jersey-2.0

renewcommand

resume-download

nunit-2.6

execute-immediate

webpack-dev-middleware

xcode8

use-context

jest-styled-components

moodle-mobile

node-jose

react-navigation-v6

request.form

architect

plotly.js

collation

About Contact Privacy policy Terms and conditions