jest-launchdarkly-mock

Easily unit test LaunchDarkly feature flagged components with jest

APACHE-2.0 License

Downloads
374.4K
Stars
25
Committers
13

Bot releases are visible (Hide)

jest-launchdarkly-mock - 2.1.0 Latest Release

Published by LaunchDarklyReleaseBot over 1 year ago

[2.1.0] - 2023-06-06

Changed:

  • useFlags now returns an empty object by default, which matches its actual implementation.
jest-launchdarkly-mock - 2.0.3

Published by LaunchDarklyReleaseBot almost 2 years ago

[2.0.3] - 2023-01-13

Changed:

  • Improved mockFlags docs to make it clear it only works with useFlags
jest-launchdarkly-mock - 2.0.2

Published by LaunchDarklyReleaseBot almost 2 years ago

[2.0.2] - 2023-01-13

Fixed:

  • Updated example app's react and js sdk versions to fix typescript issues when running tests
jest-launchdarkly-mock - 2.0.1

Published by LaunchDarklyReleaseBot almost 2 years ago

[2.0.1] - 2022-12-13

Added:

  • The useLDClientError mock function has been added. Thank you @manelmadeira.
jest-launchdarkly-mock - 2.0.0

Published by LaunchDarklyReleaseBot almost 2 years ago

[2.0.0] - 2022-12-07

The latest version of jest-launchdarkly-mock supports LaunchDarkly's new custom contexts feature. Contexts are an evolution of a previously-existing concept, "users." For more information please read the JavaScript SDK's latest release notes.

For detailed information about this version, please refer to the list below. For information on how to upgrade from the previous version, please read the migration guide.

Added:

  • The getContext mock function has been added.

Removed:

  • The getUser mock function has been removed. Please use getContext instead.
  • The alias mock function has been removed.
jest-launchdarkly-mock - 1.0.6

Published by LaunchDarklyReleaseBot over 2 years ago

[1.0.6] - 2022-07-08

Chores

  • Updated react peer dep to > 17
jest-launchdarkly-mock - 1.0.5

Published by LaunchDarklyReleaseBot over 2 years ago

[1.0.5] - 2022-06-14

Chores

  • Updated react peer dep to > 17
jest-launchdarkly-mock - 1.0.3

Published by LaunchDarklyReleaseBot over 2 years ago

[1.0.3] - 2022-05-27

Fixed:

  • Fix withLDConsumer to return children instead of null
  • Only include dist folder on npm publish
jest-launchdarkly-mock - 1.0.2

Published by LaunchDarklyReleaseBot over 2 years ago

[1.0.2] - 2022-05-23

Fixed:

  • The .yarn folder is now excluded from the npm registry
jest-launchdarkly-mock - 1.0.0

Published by LaunchDarklyReleaseBot over 2 years ago

[1.0.0] - 2022-03-23

Added:

  • Snake case support
  • Mock ldClient.alias

Fixed:

  • Mock AsyncWithLDProvider now returns a promise
jest-launchdarkly-mock - v.0.3.1

Published by yusinto over 2 years ago

  • This release includes #7 which supports mocking unmodified flag keys in addition to the existing camel and kebab cased keys.
  • Also includes correction to yarn add in the readme.
jest-launchdarkly-mock - 0.2.1

Published by bwoskow-ld over 3 years ago

Added support to mock withLDProvider

jest-launchdarkly-mock - Initial release

Published by yusinto about 4 years ago

This is the first initial release of jest-launchdarkly-mock.

Package Rankings
Top 8.17% on Proxy.golang.org
Top 4.66% on Npmjs.org
Badges
Extracted from project README
npm version npm downloads License PRs Welcome Star on GitHub Tweet
Related Projects