mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-24 13:58:49 -05:00
docs: fix typo of transformIgnorePatterns (#3927) [ci skip]
(cherry picked from commit e9d4c4902c)
This commit is contained in:
@@ -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.
|
||||
:::
|
||||
|
||||
@@ -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/']
|
||||
|
||||
Reference in New Issue
Block a user