acvetkov / sinon-chrome

Testing chrome extensions with Node.js
ISC License
439 stars 48 forks source link

How to write tests for code in content_scripts of chrome extension? #93

Open riteshbathwal opened 5 years ago

riteshbathwal commented 5 years ago

I have a chrome extension which have several .js files added as "content_scripts". All content_script file communicate with each other and have functions which modify the content of the page on which it is used.

I would like to know how to write tests for the functions defined in the content_script files. Do you have any example setup showing similar scenario?