馃悰 [Bug] console.errors in /webapp
Created by: Tirokk
Authored by mattwr18 Closed
馃悰 Bugreport
Currently, our test suite is throwing these console.errors in /pages/index.spec.js
[vuex] unknown getter: posts/currentPosts
[vuex] unknown mutation type: posts/SET_CURRENT_POSTS
see https://github.com/Human-Connection/Human-Connection/blob/master/webapp/components/FilterPosts/FilterPosts.spec.js#L59 for an example of how to configures mutations
and getters
for a test suite
Steps to reproduce the behavior
- run
yarn test pages/index.spec.js --watch --notify
from/webapp
- see console.errors
- fix by configuring the tests