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
feat(terminateCircularRelationships): Add 'immediate' as a value for the terminateCircularRelationships option (#161)
This value will make the mock not create a new Set of relationships to
ignore and create a global Set. This will circumvent possible OOM due to
large graphs.
fixes#126
When enabled, prevents circular relationships from triggering infinite recursion. After the first resolution of a
32
32
specific type in a particular call stack, subsequent resolutions will return an empty object cast to the correct type.
33
33
34
+
When enabled with `immediate`, it will only resolve the relationship once, independently of the call stack. Use this option if you're experiencing `out of memory` errors while generating mocks.
35
+
34
36
### prefix (`string`, defaultValue: `a` for consonants & `an` for vowels)
35
37
36
38
The prefix to add to the mock function name. Cannot be empty since it will clash with the associated
0 commit comments