pages
folder you can find the top level components, the ones that are directly called by router-links
. The rest of the components are found under the components
folder and namespaced according to the object they refer to. Global functions and bits of code are found under the mixins
folder, even though they are not always proper Vue mixins. The I18n is in the locale
folder. constant.js
file containing the constants, an index.js
files containing all actions, getters, and mutation, and a service.js
file containing the api methods and routes for the object. Some of them also have an initialState.js
when necessary. <function>ModalVisible
in components with one modal where the object can be inferred from context.<function><Object>ModalVisible
when there is more than one modal in the component or if the object is different from the one the component refers tovisible
when the component itself is nothing but one modal<object><Attribute>
for an attribute<function><Object>
for a functionnpm run lint
. Install the atom package and activate lint on save in the setting to automatically lint the file at every save. jest test/unit/*
, Jest will pick up all the files that end with .spec.js
.node_modules/.bin/cypress open
. To run the tests in the terminal, type cypress run --spec testfile
. element-ui
, we can't use the built-in select()
andsetSelected()
that Cypress and Vue-test-utils provide because the el-select
element doesn't include an HTML select,
which means we have to select an option by index.