extend-chrome / jest-chrome

A complete mock of the Chrome API for Chrome extensions for use with Jest.
MIT License
124 stars 24 forks source link

Manifest v3 Promise Support #21

Open derekrprice opened 1 year ago

derekrprice commented 1 year ago

Is your feature request related to a problem? Please describe.

With Manifest v3, when callbacks are not provided, functions return promises instead.

Describe the solution you'd like

Return promises instead of using the callback.

Describe alternatives you've considered

Sticking with callbacks. This is ugly!

Additional context

Manifest v2 is EOL and the Chrome store has already stopped accepting new manifest v2 submissions.

tscislo commented 10 months ago

I couldn't wait longer so I released this as npm package: @mobile-next/jest-chrome