Skip to content

Commit

Permalink
docs: moduleNameWrapper -> moduleNameMapper (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
HcySunYang authored and eddyerburgh committed Feb 7, 2018
1 parent 24bf5c6 commit 680694c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/zh-cn/guides/testing-SFCs-with-jest.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ npm install --save-dev vue-jest
## 处理 webpack 别名

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

``` json
{
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/guides/using-with-vuex.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default{
</script>
```

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

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

Expand Down

0 comments on commit 680694c

Please sign in to comment.