Skip to content

jest-fake-timers breaks util.promisify(setTimeout) #9150

@GeorgeBekh

Description

@GeorgeBekh

🐛 Bug Report

Jest breaks util.promisify(setTimeout) functionality when using fake timers.
When running code with jest-fake-timers it doesn't have the field setTimeout[util.promisify.custom], even in jest-environment-node (jest-environment-jsdom correctly doesn't have it).

(Updated description to refer to the specific jest-fake-timers problem)

envinfo

  System:
    OS: Linux 4.19 Netrunner 19.08 (Indigo)
    CPU: (12) x64 Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
  Binaries:
    Node: 12.12.0 - /bin/node
    npm: 6.12.0 - /bin/npm
  npmPackages:
    jest: ^24.9.0 => 24.9.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions