From 1f0c84a8db3e7c3ee8ef20d74f52973e7a06cc02 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Thu, 2 May 2019 00:25:29 +0200 Subject: [PATCH 1/2] fixed transformIgnorePatterns --- packages/@vue/cli-plugin-unit-jest/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vue/cli-plugin-unit-jest/README.md b/packages/@vue/cli-plugin-unit-jest/README.md index 488eae8572..7aabbbd547 100644 --- a/packages/@vue/cli-plugin-unit-jest/README.md +++ b/packages/@vue/cli-plugin-unit-jest/README.md @@ -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/'] From a04a1b1ad3683c1b1df9f24033e434193c257376 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Thu, 2 May 2019 00:30:47 +0200 Subject: [PATCH 2/2] fixed transformIgnorePatterns --- docs/config/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config/README.md b/docs/config/README.md index f9495f4050..32960393db 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -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. :::