You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-11Lines changed: 1 addition & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -2,22 +2,14 @@
2
2
3
3
Jest Vue transformer with source map support
4
4
5
-
> **NOTE:** This is documentation for `vue-jest@3.x`. [View the vue-jest@2.x documentation](https://github.com/vuejs/vue-jest/tree/e694fc7ce11ae1ac1c778ed7c4402515c5f0d5aa)
5
+
> **NOTE:** This is documentation for `vue-jest@4.x`. [View the vue-jest@3.x documentation](https://github.com/vuejs/vue-jest/tree/v3)
6
6
7
7
## Usage
8
8
9
9
```bash
10
10
npm install --save-dev vue-jest
11
11
```
12
12
13
-
### Usage with Babel 7
14
-
15
-
If you use [jest](https://github.com/facebook/jest) < 24.0.0 and [babel-jest](https://github.com/facebook/jest/tree/master/packages/babel-jest) make sure to install babel-core@bridge
16
-
17
-
```bash
18
-
npm install --save-dev babel-core@bridge
19
-
```
20
-
21
13
## Setup
22
14
23
15
To define `vue-jest` as a transformer for your `.vue` files, map them to the `vue-jest` module:
@@ -45,8 +37,6 @@ A full config will look like this.
45
37
}
46
38
```
47
39
48
-
If you're on a version of Jest older than 22.4.0, you need to set `mapCoverage` to `true` in order to use source maps.
49
-
50
40
## Example Projects
51
41
52
42
Example repositories testing Vue components with jest and vue-jest:
0 commit comments