Skip to content

Commit 44e9b43

Browse files
committed
docs: add usage to README
1 parent f79f8f4 commit 44e9b43

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
11
# vue-jest
22

3-
Jest transform for .vue files.
3+
Jest Vue transformer with source map support
4+
5+
## Usage
6+
7+
```
8+
npm install --save-dev jest-vue
9+
```
10+
11+
## Setup
12+
13+
Note: this step is only required if you are using babel-jest with additional code preprocessors.
14+
15+
To define jest-vue as a transformer for your .vue code, map .vue files to the babel-jest module.
16+
17+
```
18+
"transform": {
19+
".*\\.(vue)$": "<rootDir>/node_modules/jest-vue"
20+
},
21+
```

0 commit comments

Comments
 (0)