MitsuhaKitsune / vuex-webextensions

A Vuex plugin to share store through webextensions components
MIT License
83 stars 30 forks source link

How to test background script code ? #22

Closed KBoyarchuk closed 5 years ago

KBoyarchuk commented 5 years ago

I'm trying to tesing this plugin using Jest, Vue-Test-Utils. And I would like to know you can test specifically backgroundScript.js ?

MitsuhaKitsune commented 5 years ago

I'm sorry for this, but for now my knowlements about unit testing are very low and only do simple tests.

But seems possible, because recently I recive a pull request about unit testing: https://github.com/MitsuhaKitsune/vuex-webextensions/pull/18

Probably @blimmer can help you with the unit testing.

KBoyarchuk commented 5 years ago

@blimmer can you help plz to clarify this question ?

MitsuhaKitsune commented 5 years ago

To mantain a order on issue board i gona close this ticket, as note, I'm interested too on unit testing so if @blimmer can help are awesome.