Skip to content

Commit 74f75ae

Browse files
author
mcibique
committed
Initial tests
1 parent 5b86684 commit 74f75ae

27 files changed

+15233
-1
lines changed

.babelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"presets": [
3+
"@vue/app"
4+
],
5+
"plugins": ["@babel/plugin-proposal-decorators"]
6+
}

.eslintrc.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
mocha: true
5+
},
6+
extends: [
7+
"plugin:vue/essential",
8+
"@vue/standard"
9+
],
10+
rules: {
11+
"semi": ["error", "always"],
12+
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
13+
"no-unused-expressions": "off"
14+
}
15+
}

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
# local env files
6+
.env.local
7+
.env.*.local
8+
9+
# Log files
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
14+
# Editor directories and files
15+
.idea
16+
.vscode
17+
*.suo
18+
*.ntvs*
19+
*.njsproj
20+
*.sln

.postcssrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"plugins": {
3+
"autoprefixer": {}
4+
}
5+
}

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1-
# vue-testing-examples
1+
# vue-testing-examples
2+
3+
To document:
4+
#. Testing dumb component
5+
#. Testing smart component
6+
#. Testing v-model
7+
#. Testing navigation guards
8+
#. Mocking vuex
9+
#. Mocking router
10+
#. Mocking axios
11+
#. Assert `console.error()`
12+
#. Assert axios expectations left overs
13+
#. Mocking service in action (inject-loader)
14+
#. Mocking service in vue component (vue-loader?inject)
15+
#. Adding page objects
16+
#. Using custom selectors in page objects
17+
18+
Provide examples?
19+
??? mock-vuex module ???
20+
??? delete require.cache ???

0 commit comments

Comments
 (0)