diff --git a/docs/README.md b/docs/README.md index dfb548060..370bf395b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -7,9 +7,9 @@ Vue Test Utils is the official unit testing utility library for Vue.js. * [Common Tips](guides/common-tips.md) * [Mouse, Key and other DOM Events](guides/dom-events.md) * [Choosing a test runner](guides/choosing-a-test-runner.md) - * [Testing SFCs with Jest](guides/testing-SFCs-with-jest.md) - * [Testing SFCs with Mocha + webpack](guides/testing-SFCs-with-mocha-webpack.md) - * [Testing SFCs with Karma](guides/testing-SFCs-with-karma.md) + * [Testing SFCs with Jest](guides/testing-single-file-components-with-jest.md) + * [Testing SFCs with Mocha + webpack](guides/testing-single-file-components-with-mocha-webpack.md) + * [Testing SFCs with Karma](guides/testing-single-file-components-with-karma.md) * [Testing Asynchronous Behavior](guides/testing-async-components.md) * [Using with Vue Router](guides/using-with-vue-router.md) * [Using with Vuex](guides/using-with-vuex.md) diff --git a/docs/guides/README.md b/docs/guides/README.md index f57bd9e3a..1e8942274 100644 --- a/docs/guides/README.md +++ b/docs/guides/README.md @@ -4,9 +4,9 @@ !!!include(docs/guides/common-tips.md)!!! !!!include(docs/guides/dom-events.md)!!! !!!include(docs/guides/choosing-a-test-runner.md)!!! -!!!include(docs/guides/testing-SFCs-with-jest.md)!!! -!!!include(docs/guides/testing-SFCs-with-mocha-webpack.md)!!! -!!!include(docs/guides/testing-SFCs-with-karma.md)!!! +!!!include(docs/guides/testing-single-file-components-with-jest.md)!!! +!!!include(docs/guides/testing-single-file-components-with-mocha-webpack.md)!!! +!!!include(docs/guides/testing-single-file-components-with-karma.md)!!! !!!include(docs/guides/testing-async-components.md)!!! !!!include(docs/guides/using-with-vue-router.md)!!! !!!include(docs/guides/using-with-vuex.md)!!! \ No newline at end of file diff --git a/docs/guides/choosing-a-test-runner.md b/docs/guides/choosing-a-test-runner.md index ba43906f1..a2e1203b7 100644 --- a/docs/guides/choosing-a-test-runner.md +++ b/docs/guides/choosing-a-test-runner.md @@ -33,8 +33,8 @@ The `vue-jest` preprocessor supports basic SFC functionalities, but currently do Read the following guides for different setups: -- [Testing SFCs with Jest](./testing-SFCs-with-jest.md) -- [Testing SFCs with Mocha + webpack](./testing-SFCs-with-mocha-webpack.md) +- [Testing SFCs with Jest](./testing-single-file-components-with-jest.md) +- [Testing SFCs with Mocha + webpack](./testing-single-file-components-with-mocha-webpack.md) ### Resources diff --git a/docs/guides/testing-SFCs-with-jest.md b/docs/guides/testing-single-file-components-with-jest.md similarity index 98% rename from docs/guides/testing-SFCs-with-jest.md rename to docs/guides/testing-single-file-components-with-jest.md index 821c2fc5f..b1cb8867c 100644 --- a/docs/guides/testing-SFCs-with-jest.md +++ b/docs/guides/testing-single-file-components-with-jest.md @@ -53,7 +53,7 @@ Next, create a `jest` block in `package.json`: } ``` -> **Note:** `vue-jest` currently does not support all the features of `vue-loader`, for example custom block support and style loading. In addition, some webpack-specific features such as code-splitting are not supported either. To use these unsupported features, you need to use Mocha instead of Jest to run your tests, and webpack to compile your components. To get started, read the guide on [testing SFCs with Mocha + webpack](./testing-SFCs-with-mocha-webpack.md). +> **Note:** `vue-jest` currently does not support all the features of `vue-loader`, for example custom block support and style loading. In addition, some webpack-specific features such as code-splitting are not supported either. To use these unsupported features, you need to use Mocha instead of Jest to run your tests, and webpack to compile your components. To get started, read the guide on [testing SFCs with Mocha + webpack](./testing-single-file-components-with-mocha-webpack.md). ### Handling webpack Aliases diff --git a/docs/guides/testing-SFCs-with-karma.md b/docs/guides/testing-single-file-components-with-karma.md similarity index 100% rename from docs/guides/testing-SFCs-with-karma.md rename to docs/guides/testing-single-file-components-with-karma.md diff --git a/docs/guides/testing-SFCs-with-mocha-webpack.md b/docs/guides/testing-single-file-components-with-mocha-webpack.md similarity index 100% rename from docs/guides/testing-SFCs-with-mocha-webpack.md rename to docs/guides/testing-single-file-components-with-mocha-webpack.md diff --git a/docs/ja/README.md b/docs/ja/README.md index 8733d9b88..397e70240 100644 --- a/docs/ja/README.md +++ b/docs/ja/README.md @@ -7,9 +7,9 @@ * [一般的なヒント](guides/common-tips.md) * [キー、マウス、その他の DOM イベントのテスト](guides/dom-events.md) * [テストランナを選ぶ](guides/choosing-a-test-runner.md) - * [Jest による単一ファイルコンポーネントのテスト](guides/testing-SFCs-with-jest.md) - * [Mocha + webpack による単一ファイルコンポーネントのテスト](guides/testing-SFCs-with-mocha-webpack.md) - * [Karma による単一ファイルコンポーネントのテスト](guides/testing-SFCs-with-karma.md) + * [Jest による単一ファイルコンポーネントのテスト](guides/testing-single-file-components-with-jest.md) + * [Mocha + webpack による単一ファイルコンポーネントのテスト](guides/testing-single-file-components-with-mocha-webpack.md) + * [Karma による単一ファイルコンポーネントのテスト](guides/testing-single-file-components-with-karma.md) * [非同期動作のテスト](guides/testing-async-components.md) * [Vue Router と一緒に使う](guides/using-with-vue-router.md) * [Vuex と一緒に使う](guides/using-with-vuex.md) diff --git a/docs/ja/guides/README.md b/docs/ja/guides/README.md index 35b33f99a..ad89cbc07 100644 --- a/docs/ja/guides/README.md +++ b/docs/ja/guides/README.md @@ -4,9 +4,9 @@ !!!include(docs/ja/guides/common-tips.md)!!! !!!include(docs/ja/guides/dom-events.md)!!! !!!include(docs/ja/guides/choosing-a-test-runner.md)!!! -!!!include(docs/ja/guides/testing-SFCs-with-jest.md)!!! -!!!include(docs/ja/guides/testing-SFCs-with-mocha-webpack.md)!!! -!!!include(docs/ja/guides/testing-SFCs-with-karma.md)!!! +!!!include(docs/ja/guides/testing-single-file-components-with-jest.md)!!! +!!!include(docs/ja/guides/testing-single-file-components-with-mocha-webpack.md)!!! +!!!include(docs/ja/guides/testing-single-file-components-with-karma.md)!!! !!!include(docs/ja/guides/testing-async-components.md)!!! !!!include(docs/ja/guides/using-with-vue-router.md)!!! !!!include(docs/ja/guides/using-with-vuex.md)!!! \ No newline at end of file diff --git a/docs/ja/guides/choosing-a-test-runner.md b/docs/ja/guides/choosing-a-test-runner.md index 3c81e088d..38c3d7670 100644 --- a/docs/ja/guides/choosing-a-test-runner.md +++ b/docs/ja/guides/choosing-a-test-runner.md @@ -32,8 +32,8 @@ require('jsdom-global')() `vue-jest` プリプロセッサは基本的な SFC 機能をサポートしていますが、現在 `vue-loader` でのみサポートされているスタイルブロックやカスタムブロックは扱いません。これらの機能やその他の Webpack 固有の設定に依存する場合は、webpack + `vue-loader` ベースの設定を使用する必要があります。 さまざまな設定については、次のガイドをお読みください: -- [Jest による単一ファイルコンポーネントのテスト](./testing-SFCs-with-jest.md) -- [Mocha + webpack による単一ファイルコンポーネントのテスト](./testing-SFCs-with-mocha-webpack.md) +- [Jest による単一ファイルコンポーネントのテスト](./testing-single-file-components-with-jest.md) +- [Mocha + webpack による単一ファイルコンポーネントのテスト](./testing-single-file-components-with-mocha-webpack.md) ### リソース diff --git a/docs/ja/guides/testing-SFCs-with-jest.md b/docs/ja/guides/testing-single-file-components-with-jest.md similarity index 98% rename from docs/ja/guides/testing-SFCs-with-jest.md rename to docs/ja/guides/testing-single-file-components-with-jest.md index 2beac939b..ea3886f44 100644 --- a/docs/ja/guides/testing-SFCs-with-jest.md +++ b/docs/ja/guides/testing-single-file-components-with-jest.md @@ -53,7 +53,7 @@ npm install --save-dev vue-jest } ``` -> **注意:** `vue-jest` は現在、カスタムブロックのサポートやスタイルのロードなど、`vue-loader` のすべての機能をサポートしていません。さらに、コード分割などのWebpack固有の機能はサポートされていません。サポートされていない機能を使用するには、 Jest の代わりに Mocha をテストランナーとして使用します。そして、 Webpack をコンポーネントをコンパイルするために使用します。やり方は [Mocha + webpackによる単一ファイルコンポーネントのテスト](./testing-SFCs-with-mocha-webpack.md)のガイドをお読みください。 +> **注意:** `vue-jest` は現在、カスタムブロックのサポートやスタイルのロードなど、`vue-loader` のすべての機能をサポートしていません。さらに、コード分割などのWebpack固有の機能はサポートされていません。サポートされていない機能を使用するには、 Jest の代わりに Mocha をテストランナーとして使用します。そして、 Webpack をコンポーネントをコンパイルするために使用します。やり方は [Mocha + webpackによる単一ファイルコンポーネントのテスト](./testing-single-file-components-with-mocha-webpack.md)のガイドをお読みください。 ### Webpack エイリアスの処理 diff --git a/docs/ja/guides/testing-SFCs-with-karma.md b/docs/ja/guides/testing-single-file-components-with-karma.md similarity index 100% rename from docs/ja/guides/testing-SFCs-with-karma.md rename to docs/ja/guides/testing-single-file-components-with-karma.md diff --git a/docs/ja/guides/testing-SFCs-with-mocha-webpack.md b/docs/ja/guides/testing-single-file-components-with-mocha-webpack.md similarity index 100% rename from docs/ja/guides/testing-SFCs-with-mocha-webpack.md rename to docs/ja/guides/testing-single-file-components-with-mocha-webpack.md diff --git a/docs/ru/README.md b/docs/ru/README.md index 9bd029757..9a76fc043 100644 --- a/docs/ru/README.md +++ b/docs/ru/README.md @@ -7,9 +7,9 @@ Vue Test Utils — официальная библиотека модульно * [Общие советы](guides/common-tips.md) * [Мышь, клавиши и другие события DOM](guides/dom-events.md) * [Чем запускать тесты](guides/choosing-a-test-runner.md) - * [Тестирование однофайловых компонентов с Jest](guides/testing-SFCs-with-jest.md) - * [Тестирование однофайловых компонентов с Mocha + webpack](guides/testing-SFCs-with-mocha-webpack.md) - * [Testing однофайловых компонентов с Karma](guides/testing-SFCs-with-karma.md) + * [Тестирование однофайловых компонентов с Jest](guides/testing-single-file-components-with-jest.md) + * [Тестирование однофайловых компонентов с Mocha + webpack](guides/testing-single-file-components-with-mocha-webpack.md) + * [Testing однофайловых компонентов с Karma](guides/testing-single-file-components-with-karma.md) * [Тестирование асинхронной логики](guides/testing-async-components.md) * [Использование с Vue Router](guides/using-with-vue-router.md) * [Использование с Vuex](guides/using-with-vuex.md) diff --git a/docs/ru/guides/README.md b/docs/ru/guides/README.md index 80b816aec..e0c84f1af 100644 --- a/docs/ru/guides/README.md +++ b/docs/ru/guides/README.md @@ -4,9 +4,9 @@ !!!include(docs/ru/guides/common-tips.md)!!! !!!include(docs/ru/guides/dom-events.md)!!! !!!include(docs/ru/guides/choosing-a-test-runner.md)!!! -!!!include(docs/ru/guides/testing-SFCs-with-jest.md)!!! -!!!include(docs/ru/guides/testing-SFCs-with-mocha-webpack.md)!!! -!!!include(docs/ru/guides/testing-SFCs-with-karma.md)!!! +!!!include(docs/ru/guides/testing-single-file-components-with-jest.md)!!! +!!!include(docs/ru/guides/testing-single-file-components-with-mocha-webpack.md)!!! +!!!include(docs/ru/guides/testing-single-file-components-with-karma.md)!!! !!!include(docs/ru/guides/testing-async-components.md)!!! !!!include(docs/ru/guides/using-with-vue-router.md)!!! !!!include(docs/ru/guides/using-with-vuex.md)!!! \ No newline at end of file diff --git a/docs/ru/guides/choosing-a-test-runner.md b/docs/ru/guides/choosing-a-test-runner.md index 31ee85bc3..9306afe64 100644 --- a/docs/ru/guides/choosing-a-test-runner.md +++ b/docs/ru/guides/choosing-a-test-runner.md @@ -33,8 +33,8 @@ require('jsdom-global')() Изучите следующие руководства по вариантам настройки: -- [Тестирование однофайловых компонентов с Jest](./testing-SFCs-with-jest.md) -- [Тестирование однофайловых компонентов с Mocha + webpack](./testing-SFCs-with-mocha-webpack.md) +- [Тестирование однофайловых компонентов с Jest](./testing-single-file-components-with-jest.md) +- [Тестирование однофайловых компонентов с Mocha + webpack](./testing-single-file-components-with-mocha-webpack.md) ### Дополнительные ресурсы diff --git a/docs/ru/guides/testing-SFCs-with-jest.md b/docs/ru/guides/testing-single-file-components-with-jest.md similarity index 99% rename from docs/ru/guides/testing-SFCs-with-jest.md rename to docs/ru/guides/testing-single-file-components-with-jest.md index 54a7eb131..d85ec88ee 100644 --- a/docs/ru/guides/testing-SFCs-with-jest.md +++ b/docs/ru/guides/testing-single-file-components-with-jest.md @@ -53,7 +53,7 @@ npm install --save-dev vue-jest } ``` -> **Примечание:** `vue-jest` в настоящее время не поддерживает все возможности `vue-loader`, например пользовательские блоки и загрузку стилей. Кроме того, некоторые функции, специфичные для webpack, такие как code-splitting, также не поддерживаются. Чтобы использовать их прочитайте руководство по [тестированию однофайловых компонентов с Mocha + webpack](./testing-SFCs-with-mocha-webpack.md). +> **Примечание:** `vue-jest` в настоящее время не поддерживает все возможности `vue-loader`, например пользовательские блоки и загрузку стилей. Кроме того, некоторые функции, специфичные для webpack, такие как code-splitting, также не поддерживаются. Чтобы использовать их прочитайте руководство по [тестированию однофайловых компонентов с Mocha + webpack](./testing-single-file-components-with-mocha-webpack.md). ### Обработка псевдонимов webpack diff --git a/docs/ru/guides/testing-SFCs-with-karma.md b/docs/ru/guides/testing-single-file-components-with-karma.md similarity index 100% rename from docs/ru/guides/testing-SFCs-with-karma.md rename to docs/ru/guides/testing-single-file-components-with-karma.md diff --git a/docs/ru/guides/testing-SFCs-with-mocha-webpack.md b/docs/ru/guides/testing-single-file-components-with-mocha-webpack.md similarity index 100% rename from docs/ru/guides/testing-SFCs-with-mocha-webpack.md rename to docs/ru/guides/testing-single-file-components-with-mocha-webpack.md diff --git a/docs/zh/README.md b/docs/zh/README.md index 7ee677fb0..3438cd463 100644 --- a/docs/zh/README.md +++ b/docs/zh/README.md @@ -7,9 +7,9 @@ Vue Test Utils 是 Vue.js 官方的单元测试实用工具库。 * [常用技巧](guides/common-tips.md) * [鼠标、键盘以及其它 DOM 事件](guides/dom-events.md) * [选择一个测试运行器](guides/choosing-a-test-runner.md) - * [用 Jest 测试单文件组件](guides/testing-SFCs-with-jest.md) - * [用 Mocha 和 webpack 测试单文件组件](guides/testing-SFCs-with-mocha-webpack.md) - * [用 Karma 测试单文件组件](guides/testing-SFCs-with-karma.md) + * [用 Jest 测试单文件组件](guides/testing-single-file-components-with-jest.md) + * [用 Mocha 和 webpack 测试单文件组件](guides/testing-single-file-components-with-mocha-webpack.md) + * [用 Karma 测试单文件组件](guides/testing-single-file-components-with-karma.md) * [测试异步行为](guides/testing-async-components.md) * [配合 Vue Router 使用](guides/using-with-vue-router.md) * [配合 Vuex 实用](guides/using-with-vuex.md) diff --git a/docs/zh/guides/README.md b/docs/zh/guides/README.md index 52fddc014..c90eabf8e 100644 --- a/docs/zh/guides/README.md +++ b/docs/zh/guides/README.md @@ -4,9 +4,9 @@ !!!include(docs/zh/guides/common-tips.md)!!! !!!include(docs/zh/guides/dom-events.md)!!! !!!include(docs/zh/guides/choosing-a-test-runner.md)!!! -!!!include(docs/zh/guides/testing-SFCs-with-jest.md)!!! -!!!include(docs/zh/guides/testing-SFCs-with-mocha-webpack.md)!!! -!!!include(docs/zh/guides/testing-SFCs-with-karma.md)!!! +!!!include(docs/zh/guides/testing-single-file-components-with-jest.md)!!! +!!!include(docs/zh/guides/testing-single-file-components-with-mocha-webpack.md)!!! +!!!include(docs/zh/guides/testing-single-file-components-with-karma.md)!!! !!!include(docs/zh/guides/testing-async-components.md)!!! !!!include(docs/zh/guides/using-with-vue-router.md)!!! !!!include(docs/zh/guides/using-with-vuex.md)!!! \ No newline at end of file diff --git a/docs/zh/guides/choosing-a-test-runner.md b/docs/zh/guides/choosing-a-test-runner.md index efb8fe366..6c74ea7c1 100644 --- a/docs/zh/guides/choosing-a-test-runner.md +++ b/docs/zh/guides/choosing-a-test-runner.md @@ -33,8 +33,8 @@ Vue 的单文件组件在它们运行于 Node 或浏览器之前是需要预编 对于不同的设置方式请移步下面的教程: -- [用 Jest 测试单文件组件](./testing-SFCs-with-jest.md) -- [用 Mocha 和 webpack 测试单文件组件](./testing-SFCs-with-mocha-webpack.md) +- [用 Jest 测试单文件组件](./testing-single-file-components-with-jest.md) +- [用 Mocha 和 webpack 测试单文件组件](./testing-single-file-components-with-mocha-webpack.md) ### 相关资料 diff --git a/docs/zh/guides/testing-SFCs-with-jest.md b/docs/zh/guides/testing-single-file-components-with-jest.md similarity index 98% rename from docs/zh/guides/testing-SFCs-with-jest.md rename to docs/zh/guides/testing-single-file-components-with-jest.md index f3165d00d..80b9a4598 100644 --- a/docs/zh/guides/testing-SFCs-with-jest.md +++ b/docs/zh/guides/testing-single-file-components-with-jest.md @@ -53,7 +53,7 @@ npm install --save-dev vue-jest } ``` -> **注意:**`vue-jest` 目前并不支持 `vue-loader` 所有的功能,比如自定义块和样式加载。额外的,诸如代码分隔等 webpack 特有的功能也是不支持的。如果要使用这些不支持的特性,你需要用 Mocha 取代 Jest 来运行你的测试,同时用 webpack 来编译你的组件。想知道如何起步,请阅读教程里的[用 Mocha + webpack 测试单文件组件](./testing-SFCs-with-mocha-webpack.md)。 +> **注意:**`vue-jest` 目前并不支持 `vue-loader` 所有的功能,比如自定义块和样式加载。额外的,诸如代码分隔等 webpack 特有的功能也是不支持的。如果要使用这些不支持的特性,你需要用 Mocha 取代 Jest 来运行你的测试,同时用 webpack 来编译你的组件。想知道如何起步,请阅读教程里的[用 Mocha + webpack 测试单文件组件](./testing-single-file-components-with-mocha-webpack.md)。 ### 处理 webpack 别名 diff --git a/docs/zh/guides/testing-SFCs-with-karma.md b/docs/zh/guides/testing-single-file-components-with-karma.md similarity index 100% rename from docs/zh/guides/testing-SFCs-with-karma.md rename to docs/zh/guides/testing-single-file-components-with-karma.md diff --git a/docs/zh/guides/testing-SFCs-with-mocha-webpack.md b/docs/zh/guides/testing-single-file-components-with-mocha-webpack.md similarity index 100% rename from docs/zh/guides/testing-SFCs-with-mocha-webpack.md rename to docs/zh/guides/testing-single-file-components-with-mocha-webpack.md