From caf9c79537ae3a9f02db97f25379f2429546e386 Mon Sep 17 00:00:00 2001 From: HcySunYang Date: Wed, 7 Feb 2018 15:41:01 +0800 Subject: [PATCH 1/2] fix(docs): moduleNameWrapper -> moduleNameMapper --- docs/zh-cn/guides/testing-SFCs-with-jest.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/zh-cn/guides/testing-SFCs-with-jest.md b/docs/zh-cn/guides/testing-SFCs-with-jest.md index 38600d48a..63318b730 100644 --- a/docs/zh-cn/guides/testing-SFCs-with-jest.md +++ b/docs/zh-cn/guides/testing-SFCs-with-jest.md @@ -58,7 +58,7 @@ npm install --save-dev vue-jest ## 处理 webpack 别名 -如果你在 webpack 中配置了别名解析,比如把 `@` 设置为 `/src` 的别名,那么你也需要用 `moduleNameWrapper` 选项为 Jest 增加一个匹配配置: +如果你在 webpack 中配置了别名解析,比如把 `@` 设置为 `/src` 的别名,那么你也需要用 `moduleNameMapper` 选项为 Jest 增加一个匹配配置: ``` json { From 972e27118819dc642dbdf3d960f23691057c0a03 Mon Sep 17 00:00:00 2001 From: HcySunYang Date: Wed, 7 Feb 2018 15:52:21 +0800 Subject: [PATCH 2/2] fix(docs): spelling mistake --- docs/zh-cn/guides/using-with-vuex.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/zh-cn/guides/using-with-vuex.md b/docs/zh-cn/guides/using-with-vuex.md index d7c59e665..bef55ae11 100644 --- a/docs/zh-cn/guides/using-with-vuex.md +++ b/docs/zh-cn/guides/using-with-vuex.md @@ -37,7 +37,7 @@ export default{ ``` -站在测试的角度,我们不关心这个 action 做了什么或者这个 store 是什么样子的。我们只需要知道这些 action 将会在适当的时机触发,已经它们触发时的预期值。 +站在测试的角度,我们不关心这个 action 做了什么或者这个 store 是什么样子的。我们只需要知道这些 action 将会在适当的时机触发,以及它们触发时的预期值。 为了完成这个测试,我们需要在浅渲染组件时给 Vue 传递一个伪造的 store。