jest-webextension-mock

A module to mock WebExtensions in Jest

BSD-3-CLAUSE License

Downloads
10
Stars
91
Committers
16
jest-webextension-mock - tabs.sendMessage support Latest Release

Published by clarkbw about 4 years ago

Thanks to @hankchiutw in https://github.com/clarkbw/jest-webextension-mock/pull/123 we now have support for tabs.sendMessage

jest-webextension-mock - tabs.reload support

Published by clarkbw over 4 years ago

This adds support for tabs.reload

jest-webextension-mock - browser.i18n

Published by clarkbw about 6 years ago

See https://github.com/clarkbw/jest-webextension-mock/pull/80 and thanks to @Betree we have support for i18n

jest-webextension-mock - Notifications API

Published by clarkbw almost 7 years ago

Thanks to the awesome work by @Kocal in #55 we now support mocks of the notifications API.

jest-webextension-mock - Update storage API

Published by clarkbw almost 7 years ago

Check out the great work done by @AllenFang in https://github.com/clarkbw/jest-webextension-mock/pull/46

Major updates to browser.strorage:

  • Return correct value for get function which adapts depending on the parameters of Integer, Array, or Object which can be passed.
  • Return correct value for getBytesInUse function which are suppose to return integer.
  • Return correct value for set and remove function which are suppose to return nothing.
jest-webextension-mock - Initial public release

Published by clarkbw over 7 years ago

This is the first version and it still has a long way to go. Hoping I get lots of help from here on out. 😄

Package Rankings
Top 12.9% on Npmjs.org
Badges
Extracted from project README
npm npm Codecov Greenkeeper badge Twitter
Related Projects