Skip to content

Commit 364d1c5

Browse files
Hugo Almeidaeddyerburgh
Hugo Almeida
authored andcommitted
docs: update translation pt-br (#470)
Fix and update translation pt-br.
1 parent b053218 commit 364d1c5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/pt-br/guides/testing-SFCs-with-jest.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ A primeira coisa para se fazer é instalar o Jest e o `vue-test-utils`:
1313
```bash
1414
$ npm install --save-dev jest vue-test-utils
1515
```
16+
ou
17+
18+
```bash
19+
$ npm install --save-dev jest @vue/test-utils
20+
```
1621

1722
Posteriormente, devemos definir um script novo no `package.json`:
1823

@@ -49,7 +54,6 @@ Agora, crie um bloco chamado `jest` no `package.json`:
4954
// processa arquivos vue com o vue-jest
5055
".*\\.(vue)$": "<rootDir>/node_modules/vue-jest"
5156
},
52-
"mapCoverage": true
5357
}
5458
}
5559
```
@@ -165,7 +169,7 @@ import Componente from './componente'
165169
describe('Componente', () => {
166170
test('é uma instância do Vue', () => {
167171
const wrapper = mount(Componente)
168-
expect(wrapper.ehInstanciaVue()).toBeTruthy()
172+
expect(wrapper.isVueInstance()).toBeTruthy()
169173
})
170174
})
171175
```

0 commit comments

Comments
 (0)