You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test('can mock Readonly type',()=>{constmock=createMock<Readonly<{foo: string}>>({foo: 'bar'});expect(typeofmock.foo).toBe('string');// This works because of the property overrides provided to `createMock`});
Expected behavior
The Readonly mock should be created.
Actual behavior
The mock is created as undefined.
The text was updated successfully, but these errors were encountered:
We would like to but typescript doesn't have very good tools for us to understand the type. We're always keeping it under the radar but right now we can't do much.
Subject of the issue
When trying to create a mock for Readonly type the result is
undefined
Your environment
3.1.0
4.1.3
12.14.0
6.13.4
Steps to reproduce
Expected behavior
The
Readonly
mock should be created.Actual behavior
The mock is created as
undefined
.The text was updated successfully, but these errors were encountered: