Skip to content

Type Promisify<...> has no call signatures #2866

@mwstr

Description

@mwstr

Describe the bug

I'm trying to reproduce resolves example. The Chai style assertion throws strange Typescript error:
image

Reproduction

https://stackblitz.com/edit/vitest-dev-vitest-52dmdx?file=test/basic.test.ts

System Info

System:
    OS: Linux 6.1 Fedora Linux 37 (Workstation Edition)
    CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
    Memory: 5.08 GB / 15.46 GB
    Container: Yes
    Shell: 5.2.15 - /bin/bash
  Binaries:
    Node: 18.0.0 - ~/.volta/tools/image/node/18.0.0/bin/node
    npm: 8.6.0 - ~/.volta/tools/image/node/18.0.0/bin/npm
  Browsers:
    Chrome: 110.0.5481.77
  npmPackages:
    vite: ^4.1.1 => 4.1.1 
    vitest: ^0.28.5 => 0.28.5

Used Package Manager

pnpm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3-minor-bugAn edge case that only affects very specific usage (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions