Skip to content

Commit 680694c

Browse files
HcySunYangeddyerburgh
authored andcommitted
docs: moduleNameWrapper -> moduleNameMapper (#417)
1 parent 24bf5c6 commit 680694c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/zh-cn/guides/testing-SFCs-with-jest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ npm install --save-dev vue-jest
5858
5959
## 处理 webpack 别名
6060

61-
如果你在 webpack 中配置了别名解析,比如把 `@` 设置为 `/src` 的别名,那么你也需要用 `moduleNameWrapper` 选项为 Jest 增加一个匹配配置:
61+
如果你在 webpack 中配置了别名解析,比如把 `@` 设置为 `/src` 的别名,那么你也需要用 `moduleNameMapper` 选项为 Jest 增加一个匹配配置:
6262

6363
``` json
6464
{

docs/zh-cn/guides/using-with-vuex.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default{
3737
</script>
3838
```
3939

40-
站在测试的角度,我们不关心这个 action 做了什么或者这个 store 是什么样子的。我们只需要知道这些 action 将会在适当的时机触发,已经它们触发时的预期值
40+
站在测试的角度,我们不关心这个 action 做了什么或者这个 store 是什么样子的。我们只需要知道这些 action 将会在适当的时机触发,以及它们触发时的预期值
4141

4242
为了完成这个测试,我们需要在浅渲染组件时给 Vue 传递一个伪造的 store。
4343

0 commit comments

Comments
 (0)