File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 38
38
<h2 >Table of Contents</h2 >
39
39
40
40
- [ Installation] ( #installation )
41
- - [ Examples] ( #examples )
41
+ - [ A simple example] ( #a-simple-example )
42
+ - [ More examples] ( #more-examples )
42
43
- [ Docs] ( #docs )
43
44
- [ License] ( #license )
44
45
- [ Contributors] ( #contributors )
45
46
46
47
## Installation
47
48
48
- This module is distributed via npm which is bundled with node and
49
- should be installed as one of your project's ` devDependencies ` :
49
+ This module is distributed via npm and should be installed as one of your 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 ` .
56
+
55
57
You may also be interested in installing ` jest-dom ` so you can use
56
58
[ the custom Jest matchers] ( https://github.com/gnapse/jest-dom#readme ) .
57
59
58
- ## Examples
60
+ ## A simple example
59
61
60
62
``` html
61
63
<!-- TestComponent.vue -->
@@ -104,6 +106,7 @@ test('increments value on click', async () => {
104
106
})
105
107
```
106
108
109
+ ### More examples
107
110
108
111
You'll find examples of testing with different situations and popular libraries in
109
112
[ the test directory] [ test-directory ] .
You can’t perform that action at this time.
0 commit comments