Skip to content

Commit 5c95ee9

Browse files
0xflotushaoqunjiang
authored andcommitted
docs: fix typo of transformIgnorePatterns (#3927) [ci skip]
(cherry picked from commit e9d4c49)
1 parent c50969f commit 5c95ee9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/config/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Deprecated since Vue CLI 3.3, please use [`publicPath`](#publicPath) instead.
193193
::: warning Jest config
194194
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.
195195

196-
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`.
196+
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`.
197197

198198
See [the plugin's README](https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-plugin-unit-jest/README.md) for more information.
199199
:::

packages/@vue/cli-plugin-unit-jest/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ However, we have (at least) three cases where we do need to transpile code from
5151
2. Single File Components (`.vue` files) which have to be run through `vue-jest`
5252
3. Typescript code
5353

54-
To do this, we need to add an exception to the `tranformIgnorePatterns` option of jest. This is its default value:
54+
To do this, we need to add an exception to the `transformIgnorePatterns` option of jest. This is its default value:
5555

5656
```javascript
5757
transformIgnorePatterns: ['/node_modules/']

0 commit comments

Comments
 (0)