Skip to content

Commit f35c9ae

Browse files
committed
docs: fix lint
1 parent 7efa89a commit f35c9ae

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/en/guides/testing-SFCs-with-jest.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ npm install --save-dev jest-vue
3535

3636
Next, create a `jest` block in `package.json`:
3737

38-
``` js
38+
``` json
3939
{
4040
// ...
4141
"jest": {
@@ -60,7 +60,7 @@ Next, create a `jest` block in `package.json`:
6060

6161
If you use a resolve alias in the webpack config, e.g. aliasing `@` to `/src`, you need to add a matching config for Jest as well, using the `moduleNameMapper` option:
6262

63-
``` js
63+
``` json
6464
{
6565
// ...
6666
"jest": {
@@ -83,7 +83,7 @@ npm install --save-dev babel-jest
8383

8484
Next, we need to tell Jest to process JavaScript test files with `babel-jest` by adding an entry under `jest.transform` in `package.json`:
8585

86-
``` js
86+
``` json
8787
{
8888
// ...
8989
"jest": {
@@ -129,13 +129,13 @@ You can use [`vue-server-renderer`](https://github.com/vuejs/vue/tree/dev/packag
129129

130130
The render result of `vue-server-renderer` includes a few SSR-specific attributes, and it ignores whitespaces, making it harder to scan a diff. We can improve the saved snapshot with a custom serializer:
131131

132-
``` js
132+
``` bash
133133
npm install --save-dev jest-serializer-vue
134134
```
135135

136136
Then configure it in `package.json`:
137137

138-
``` js
138+
``` json
139139
{
140140
// ...
141141
"jest": {

docs/en/guides/testing-SFCs-with-mocha-webpack.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ We will assume you are starting with a setup that already has webpack, vue-loade
1010

1111
The first thing to do is installing test dependencies:
1212

13-
```bash
13+
``` bash
1414
npm install --save-dev vue-test-utils mocha mocha-webpack
1515
```
1616

@@ -56,7 +56,7 @@ Source maps need to be inlined to be picked up by `mocha-webpack`. The recommend
5656
``` js
5757
module.exports = {
5858
// ...
59-
devtool: "inline-cheap-module-source-map"
59+
devtool: 'inline-cheap-module-source-map'
6060
}
6161
```
6262

0 commit comments

Comments
 (0)