faker icon indicating copy to clipboard operation
faker copied to clipboard

Change default word filtering strategy to fail

Open ST-DDT opened this issue 1 year ago • 0 comments

https://github.com/faker-js/faker/blob/d31579b2593de48ea01015ad1cd2c46207a67a94/test/modules/word.spec.ts#L66-L73

IMO if the user specifies a specific length for their words, then by default it should fail if the request cannot be fulfilled. If the user wants a different behavior, then they can still define an explicit error handling strategy.

Found while looking at: #3261

  • #3261

ST-DDT avatar Nov 14 '24 11:11 ST-DDT