Closed tboulis closed 2 years ago
Added optional second parameter to mockFlags() function that is of type:
mockFlags()
type mockFlagsOptions = { skipFormatting?: boolean }
If skipFormatting is true, the flags will be mocked without formatting them to camelCase and kebab-case.
Related to https://github.com/launchdarkly-labs/jest-launchdarkly-mock/issues/6
Based on code review comment, the original flag is added as-is so the pristine value is returned
This has been released. Thanks @tboulis
Added optional second parameter to
mockFlags()
function that is of type:If skipFormatting is true, the flags will be mocked without formatting them to camelCase and kebab-case.
Related to https://github.com/launchdarkly-labs/jest-launchdarkly-mock/issues/6
EDIT #1:
Based on code review comment, the original flag is added as-is so the pristine value is returned