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
The idea is that: A package I would like to be ignored has too many types, classes, interfaces, objects, etc. And they all have too many child properties etc. To mock it, (especially without requireActual), you have to manually include all the classes/properties being used and their child properties. This is very time consuming.
Is there a way to achieve this in bun test?
What is the feature you are proposing to solve the problem?
Automatic mocking of all classes/properties inside a module.
What alternatives have you considered?
Searching docs. Attempted to use the jest equivalent to no avail.
The text was updated successfully, but these errors were encountered:
What is the problem this feature would solve?
Automatic mocking. I believe it's available in jest: https://jestjs.io/docs/jest-object#jestcreatemockfrommodulemodulename
(and maybe: https://jestjs.io/docs/es6-class-mocks#automatic-mock)
The idea is that: A package I would like to be ignored has too many types, classes, interfaces, objects, etc. And they all have too many child properties etc. To mock it, (especially without requireActual), you have to manually include all the classes/properties being used and their child properties. This is very time consuming.
Is there a way to achieve this in bun test?
What is the feature you are proposing to solve the problem?
Automatic mocking of all classes/properties inside a module.
What alternatives have you considered?
Searching docs. Attempted to use the jest equivalent to no avail.
The text was updated successfully, but these errors were encountered: