Intl.RelativeTimeFormat
and Intl.ListFormat
can't be spied upon
#6104
Labels
Intl.RelativeTimeFormat
and Intl.ListFormat
can't be spied upon
#6104
Describe the bug
When using
vi.spyOn(Intl, 'RelativeTimeFormat')
orvi.spyOn(Intl, 'ListFormat')
, the constructor can no longer be called due to:Note that
Intl.DateTimeFormat
works flawlessly.Reproduction
StackBlitz
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: