From de5af783559cda0bb770f484f80c4d9b32cfe300 Mon Sep 17 00:00:00 2001 From: Jurriaan van Hengel <15790266+hngl@users.noreply.github.com> Date: Mon, 29 Jan 2024 22:59:49 +0100 Subject: [PATCH] docs: Jest globals key is always `vue-jest` (#519) The key used to get config is `vue-jest` in both [`@vue/vue2-jest`](https://github.com/vuejs/vue-jest/blob/3dc76ff8491d149d89a8ba5deb02f517f1535f98/packages/vue2-jest/lib/utils.js#L57) and [`@vue/vue3-jest`](https://github.com/vuejs/vue-jest/blob/3dc76ff8491d149d89a8ba5deb02f517f1535f98/packages/vue3-jest/lib/utils.js#L57), not the respective Vue/Jest version dependant package variant name. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f0e92bad..38e53f22 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ A `package.json` Example "^.+\\.vue$": "@vue/vue2-jest" }, "globals": { - "@vue/vue2-jest": { + "vue-jest": { "transform": { "your-custom-block": "./custom-block-processor.js" } @@ -135,7 +135,7 @@ A `jest.config.js` Example - If you're using a dedicated configuration file like ```js module.exports = { globals: { - '@vue/vue2-jest': { + 'vue-jest': { transform: { 'your-custom-block': require('./custom-block-processor') } @@ -170,7 +170,7 @@ You can provide [TemplateCompileOptions](https://github.com/vuejs/component-comp { "jest": { "globals": { - "@vue/vue2-jest": { + "vue-jest": { "templateCompiler": { "transpileOptions": { "transforms": { @@ -195,7 +195,7 @@ You can provide [TemplateCompileOptions](https://github.com/vuejs/component-comp { "jest": { "globals": { - "@vue/vue2-jest": { + "vue-jest": { "pug": { "basedir": "mybasedir" }