ItamarWMDE created this task.
ItamarWMDE added projects: Wikidata, Mismatch Finder (Mismatch Finder - sprint 
4).

TASK DESCRIPTION
  In order to ensure that our JavaScript code is covered by (integration / 
unit) tests, we will have to set up a JavaScript testing library.
  
  Nowadays, the most popular test runner and assertions library is Jest 
<https://jestjs.io/>. Which also seems to be the most commonly employed testing 
library in recent WMDE projects. Since we are creating a VueJS application, we 
will probably have to additionally install some VueJS testing wrapper, to 
enable us to easily instantiate and render components within tests. To this 
end, the industry standard library seems to be Vue Test Utils 
<https://vue-test-utils.vuejs.org/>.
  
  **AC:**
  
  [ ] JavaScript testing is set up in our application
  [ ] Developer docs have been updated with instructions on how to run the tests
  [ ] Our Github workflows have been updated to run JavaScript tests 
automatically for each commit.
  
  **Hints:**
  
  - In order to run the tests, we might need to come up with our own npm script 
or utilize (or some other option like Vue CLI <https://cli.vuejs.org/> if 
applicable - depending on which approach we used to set our app up).
  - A guide that looks cool: https://simple-web.dev/vue-testing-in-laravel

TASK DETAIL
  https://phabricator.wikimedia.org/T288063

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: ItamarWMDE
Cc: Aklapper, ItamarWMDE, karapayneWMDE, Invadibot, maantietaja, 
Mattia_Capozzi_WMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, 
Mbch331
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to