8000 docs: Jest globals key is always `vue-jest` · vuejs/vue-jest@44759e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 44759e7

Browse files
committed
docs: Jest globals key is always vue-jest
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.
1 parent 3dc76ff commit 44759e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ A `package.json` Example
118118
"^.+\\.vue$": "@vue/vue2-jest"
119119
},
120120
"globals": {
121-
"@vue/vue2-jest": {
121+
"vue-jest": {
122122
"transform": {
123123
"your-custom-block": "./custom-block-processor.js"
124124
}
@@ -135,7 +135,7 @@ A `jest.config.js` Example - If you're using a dedicated configuration file like
135135
```js
136136
module.exports = {
137137
globals: {
138-
'@vue/vue2-jest': {
138+
'vue-jest': {
139139
transform: {
140140
'your-custom-block': require('./custom-block-processor')
141141
}
@@ -170,7 +170,7 @@ You can provide [TemplateCompileOptions](https://github.com/vuejs/component-comp
170170
{
171171
"jest": {
172172
"globals": {
173-
"@vue/vue2-jest": {
173+
"vue-jest": {
174174
"templateCompiler": {
175175
"transpileOptions": {
176176
"transforms": {
@@ -195,7 +195,7 @@ You can provide [TemplateCompileOptions](https://github.com/vuejs/component-comp
195195
{
196196
"jest": {
197197
"globals": {
198-
"@vue/vue2-jest": {
198+
"vue-jest": {
199199
"pug": {
200200
"basedir": "mybasedir"
201201
}

0 commit comments

Comments
 (0)
0