docs: fix typo of transformIgnorePatterns (#3927) [ci skip]

(cherry picked from commit e9d4c4902c)
This commit is contained in:
0xflotus
2019-05-17 11:02:06 +02:00
committed by Haoqun Jiang
parent c50969fcbe
commit 5c95ee9539
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ Deprecated since Vue CLI 3.3, please use [`publicPath`](#publicPath) instead.
::: warning Jest config
This option is not respected by the [cli-unit-jest plugin](#jest), because in jest, we don't have to transpile code from `/node_modules` unless it uses non-standard features - Node >8.11 supports the latest ECMAScript features already.
However, jest sometimes has to transform content from node_modules if that code uses ES6 `import`/`export` syntax. In that case, use the `tranformIgnorePatterns` option in `jest.config.js`.
However, jest sometimes has to transform content from node_modules if that code uses ES6 `import`/`export` syntax. In that case, use the `transformIgnorePatterns` option in `jest.config.js`.
See [the plugin's README](https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-plugin-unit-jest/README.md) for more information.
:::
+1 -1
View File
@@ -51,7 +51,7 @@ However, we have (at least) three cases where we do need to transpile code from
2. Single File Components (`.vue` files) which have to be run through `vue-jest`
3. Typescript code
To do this, we need to add an exception to the `tranformIgnorePatterns` option of jest. This is its default value:
To do this, we need to add an exception to the `transformIgnorePatterns` option of jest. This is its default value:
```javascript
transformIgnorePatterns: ['/node_modules/']