16
16
17
17
<br />
18
18
19
- [ ** Read the Docs** ] [ docs ] |
20
- [ Edit the docs] [ docs-edit ]
19
+ [ ** Read the Docs** ] [ docs ] | [ Edit the docs] [ docs-edit ]
21
20
22
21
<br />
23
22
46
45
47
46
## Installation
48
47
49
- This module is distributed via npm and should be installed as one of your project's ` devDependencies ` :
48
+ This module is distributed via npm and should be installed as one of your
49
+ project's ` devDependencies ` :
50
50
51
51
```
52
52
npm install --save-dev @testing-library/vue
53
53
```
54
54
55
- This library has ` peerDependencies ` listings for ` Vue ` and ` vue-template-compiler ` .
55
+ This library has ` peerDependencies ` listings for ` Vue ` and
56
+ ` vue-template-compiler ` .
56
57
57
58
You may also be interested in installing ` jest-dom ` so you can use
58
59
[ the custom Jest matchers] ( https://github.com/gnapse/jest-dom#readme ) .
@@ -69,16 +70,16 @@ You may also be interested in installing `jest-dom` so you can use
69
70
</template >
70
71
71
72
<script >
72
- export default {
73
- data : () => ({
74
- count: 0
75
- }),
76
- methods: {
77
- increment () {
78
- this .count ++
73
+ export default {
74
+ data : () => ({
75
+ count: 0
76
+ }),
77
+ methods: {
78
+ increment () {
79
+ this .count ++
80
+ }
79
81
}
80
82
}
81
- }
82
83
</script >
83
84
```
84
85
@@ -108,22 +109,21 @@ test('increments value on click', async () => {
108
109
109
110
### More examples
110
111
111
- You'll find examples of testing with different situations and popular libraries in
112
- [ the test directory] [ test-directory ] .
112
+ You'll find examples of testing with different situations and popular libraries
113
+ in [ the test directory] [ test-directory ] .
113
114
114
115
Some included are:
115
116
116
- * [ ` vuex ` ] [ vuex-example ]
117
- * [ ` vue-router ` ] [ vue-router-example ]
118
- * [ ` vee-validate ` ] [ vee-validate-example ]
119
- * [ ` vue-i18n ` ] [ vue-i18n-example ]
117
+ - [ ` vuex ` ] [ vuex-example ]
118
+ - [ ` vue-router ` ] [ vue-router-example ]
119
+ - [ ` vee-validate ` ] [ vee-validate-example ]
120
+ - [ ` vue-i18n ` ] [ vue-i18n-example ]
120
121
121
122
Feel free to contribute with more examples!
122
123
123
124
## Docs
124
125
125
- [ ** Read the Docs** ] [ docs ] |
126
- [ Edit the docs] [ docs-edit ]
126
+ [ ** Read the Docs** ] [ docs ] | [ Edit the docs] [ docs-edit ]
127
127
128
128
## License
129
129
0 commit comments