Closed benjamin-t-frost closed 1 year ago
Currently, the in operator always returns false for asyncClients.
asyncClient
Vitest's dependency, tinyspy, asserts that a property is in and object when attempting to spy on it, so asyncClients are currently not spyable in that environment.
in
Offending code: https://github.com/tinylibs/tinyspy/blob/main/src/spyOn.ts#L78-L81
Description
Currently, the in operator always returns false for
asyncClient
s.Vitest's dependency, tinyspy, asserts that a property is
in
and object when attempting to spy on it, soasyncClient
s are currently not spyable in that environment.Offending code: https://github.com/tinylibs/tinyspy/blob/main/src/spyOn.ts#L78-L81