Skip to content

fix(docs): moduleNameWrapper -> moduleNameMapper #417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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