From 59b1a76a847a9dc9623c62fbee5b0e165ec5d2d1 Mon Sep 17 00:00:00 2001 From: Hugo Almeida Date: Wed, 14 Mar 2018 09:25:09 -0300 Subject: [PATCH] Update translation pt-br Fix and update translation pt-br. --- docs/pt-br/guides/testing-SFCs-with-jest.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/pt-br/guides/testing-SFCs-with-jest.md b/docs/pt-br/guides/testing-SFCs-with-jest.md index 1625264fa..a4a459af4 100644 --- a/docs/pt-br/guides/testing-SFCs-with-jest.md +++ b/docs/pt-br/guides/testing-SFCs-with-jest.md @@ -13,6 +13,11 @@ A primeira coisa para se fazer é instalar o Jest e o `vue-test-utils`: ```bash $ npm install --save-dev jest vue-test-utils ``` +ou + +```bash +$ npm install --save-dev jest @vue/test-utils +``` Posteriormente, devemos definir um script novo no `package.json`: @@ -49,7 +54,6 @@ Agora, crie um bloco chamado `jest` no `package.json`: // processa arquivos vue com o vue-jest ".*\\.(vue)$": "/node_modules/vue-jest" }, - "mapCoverage": true } } ``` @@ -165,7 +169,7 @@ import Componente from './componente' describe('Componente', () => { test('é uma instância do Vue', () => { const wrapper = mount(Componente) - expect(wrapper.ehInstanciaVue()).toBeTruthy() + expect(wrapper.isVueInstance()).toBeTruthy() }) }) ```