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

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
Describe the bug
I'm trying to reproduce

resolvesexample. The Chai style assertion throws strange Typescript error: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.5Used Package Manager
pnpm
Validations