Skip to content

Vitest report an error with assertType<string> #31302

@foobar-maker

Description

@foobar-maker

Version: Deno 2.5.6

I run Deno test with Vitest library and want to test assertType<string>

Is it due to Deno or Vitest ?

assertType("aaa") => works
assertType(uuid()) => error

PoC in zip
deno-vitest.zip

./add/index.test.ts (uncaught error)
error: (in promise) Error: Vitest failed to find the current suite. This is a bug in Vitest. Please, open an issue with reproduction.
    at assert 
    at getCurrentSuite 
    at Object.<anonymous> 
    at chain 
This error was not caught from a test and caused the test runner to fail on the referenced module.
It most likely originated from a dangling promise, event/timeout handler or top-level code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs infoneeds further information to be properly triagedupstreamChanges in upstream are required to solve these issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions