From 4b791c08069b6c60e4aa9fa7c07e9efcd0b876f8 Mon Sep 17 00:00:00 2001 From: Donghoon Song Date: Mon, 27 Feb 2023 11:40:10 +0900 Subject: [PATCH] chore: add @legacy to install script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### [커밋 타입]: [작업내용] ##### 본문 - 한 줄에 최대 72 글자까지만 입력하기 # 1. 무엇을 수정했는지 # 2. 왜 수정했는지 # 꼬릿말은 아래에 작성: ex) #이슈 번호 - # [커밋 타입] 리스트 # feat : 기능 (새로운 기능) # fix : 버그 (버그 수정) # refactor : 리팩토링 # style : 스타일 (코드 형식, 세미콜론 추가: 비즈니스 로직에 변경 없음) # docs : 문서 (문서 추가, 수정, 삭제) # test : 테스트 (테스트 코드 추가, 수정, 삭제: 비즈니스 로직에 변경 없음) # chore : 기타 변경사항 (빌드 스크립트 수정 등) # post : 블로그 포스트 추가 (신규 포스트 작성 및 수정) # ------------------ # [체크리스트] # 제목 첫 글자는 대문자로 작성했나요? # 제목은 명령문으로 작성했나요? # 제목 끝에 마침표(.) 금지 # 제목과 본문을 한 줄 띄워 분리하기 # 본문에 여러줄의 메시지를 작성할 땐 "-"로 구분했나요? # ------------------ Now, when the script is executed the latest version is installed. I think we need to add "@legacy" to install version 1.3.4 --- docs/installation/using-with-jest.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/installation/using-with-jest.md b/docs/installation/using-with-jest.md index c6a49b0c5..5f9167934 100644 --- a/docs/installation/using-with-jest.md +++ b/docs/installation/using-with-jest.md @@ -17,7 +17,7 @@ The plugin pulls all required dependencies (including jest), creates a `jest.con After that, all you need to do is to install Vue Test Utils. ```bash -$ npm install --save-dev @vue/test-utils +$ npm install --save-dev @vue/test-utils@legacy ``` ### Manual installation @@ -25,7 +25,7 @@ $ npm install --save-dev @vue/test-utils After setting up Jest, the first thing to do is to install Vue Test Utils and [`vue-jest`](https://github.com/vuejs/vue-jest) to process Single-File Components: ```bash -$ npm install --save-dev @vue/test-utils vue-jest +$ npm install --save-dev @vue/test-utils@legacy vue-jest ``` Then, you need to tell Jest to transform `.vue` files using `vue-jest`. You can do so by adding the following configuration in `package.json` or in a standalone [Jest config file](https://jestjs.io/docs/en/configuration):