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
In all versions after 0.5.0 if somewhere in the code the RegExp.test is used on mocked object property then tests fails.
This can be simply reproduced using bellow test snipped, by e.g. putting it in packages/testing/ts-jest/src/mocks.spec.ts.
it('should work with RegExp',()=>{typeSimpleType={field: string;};constmock=createMock<SimpleType>();expect(/test/.test(mock.field));});
The text was updated successfully, but these errors were encountered:
In all versions after 0.5.0 if somewhere in the code the
RegExp.test
is used on mocked object property then tests fails.This can be simply reproduced using bellow test snipped, by e.g. putting it in
packages/testing/ts-jest/src/mocks.spec.ts
.The text was updated successfully, but these errors were encountered: