From 9b7ce2a171b8f2454237b81e732869a630b3434a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 17 Jan 2023 22:40:50 +0900 Subject: [PATCH] chore(deps): update dependency eslint-plugin-jest to v27 (#826) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: peaceiris <30958501+peaceiris@users.noreply.github.com> --- __tests__/get-inputs.test.ts | 2 +- __tests__/git-utils.test.ts | 10 +++------- __tests__/set-tokens.test.ts | 6 +++--- package-lock.json | 18 +++++++++--------- package.json | 2 +- 5 files changed, 17 insertions(+), 21 deletions(-) diff --git a/__tests__/get-inputs.test.ts b/__tests__/get-inputs.test.ts index 2cd306a9d..f278d0e35 100644 --- a/__tests__/get-inputs.test.ts +++ b/__tests__/get-inputs.test.ts @@ -184,6 +184,6 @@ describe('getInputs()', () => { expect(() => { getInputs(); - }).toThrowError('Use either of enable_jekyll or disable_nojekyll'); + }).toThrow('Use either of enable_jekyll or disable_nojekyll'); }); }); diff --git a/__tests__/git-utils.test.ts b/__tests__/git-utils.test.ts index 79f549ddb..c74f3069b 100644 --- a/__tests__/git-utils.test.ts +++ b/__tests__/git-utils.test.ts @@ -148,7 +148,7 @@ describe('setRepo()', () => { const date = new Date(); const unixTime = date.getTime(); const workDir = await getWorkDirName(`${unixTime}`); - await expect(setRepo(inps, remoteURL, workDir)).rejects.toThrowError( + await expect(setRepo(inps, remoteURL, workDir)).rejects.toThrow( 'destination_dir should be a relative path' ); }); @@ -241,17 +241,13 @@ describe('setCommitAuthor()', () => { test('throw error user_email is undefined', async () => { const userName = 'custom-octocat'; const userEmail = ''; - await expect(setCommitAuthor(userName, userEmail)).rejects.toThrowError( - 'user_email is undefined' - ); + await expect(setCommitAuthor(userName, userEmail)).rejects.toThrow('user_email is undefined'); }); test('throw error user_name is undefined', async () => { const userName = ''; const userEmail = 'custom-octocat@github.com'; - await expect(setCommitAuthor(userName, userEmail)).rejects.toThrowError( - 'user_name is undefined' - ); + await expect(setCommitAuthor(userName, userEmail)).rejects.toThrow('user_name is undefined'); }); }); diff --git a/__tests__/set-tokens.test.ts b/__tests__/set-tokens.test.ts index ea8a4a52f..65aa3391a 100644 --- a/__tests__/set-tokens.test.ts +++ b/__tests__/set-tokens.test.ts @@ -70,13 +70,13 @@ describe('setGithubToken()', () => { 'refs/heads/gh-pages-base', 'push' ); - }).toThrowError('You deploy from gh-pages-base to gh-pages-base'); + }).toThrow('You deploy from gh-pages-base to gh-pages-base'); }); test('throw error master to master', () => { expect(() => { setGithubToken('GITHUB_TOKEN', 'owner/repo', 'master', '', 'refs/heads/master', 'push'); - }).toThrowError('You deploy from master to master'); + }).toThrow('You deploy from master to master'); }); test('throw error external repository with GITHUB_TOKEN', () => { @@ -89,7 +89,7 @@ describe('setGithubToken()', () => { 'refs/heads/master', 'push' ); - }).toThrowError(`\ + }).toThrow(`\ The generated GITHUB_TOKEN (github_token) does not support to push to an external repository. Use deploy_key or personal_token. `); diff --git a/package-lock.json b/package-lock.json index dfd7a21b1..b5233df72 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "@vercel/ncc": "^0.36.0", "eslint": "^8.32.0", "eslint-config-prettier": "^8.6.0", - "eslint-plugin-jest": "^26.9.0", + "eslint-plugin-jest": "^27.2.1", "eslint-plugin-prettier": "^4.2.1", "husky": "^8.0.3", "jest": "^29.3.1", @@ -2858,19 +2858,19 @@ } }, "node_modules/eslint-plugin-jest": { - "version": "26.9.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-26.9.0.tgz", - "integrity": "sha512-TWJxWGp1J628gxh2KhaH1H1paEdgE2J61BBF1I59c6xWeL5+D1BzMxGDN/nXAfX+aSkR5u80K+XhskK6Gwq9ng==", + "version": "27.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.2.1.tgz", + "integrity": "sha512-l067Uxx7ZT8cO9NJuf+eJHvt6bqJyz2Z29wykyEdz/OtmcELQl2MQGQLX8J94O1cSJWAwUSEvCjwjA7KEK3Hmg==", "dev": true, "dependencies": { "@typescript-eslint/utils": "^5.10.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "@typescript-eslint/eslint-plugin": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "eslint": "^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "@typescript-eslint/eslint-plugin": { @@ -9943,9 +9943,9 @@ "requires": {} }, "eslint-plugin-jest": { - "version": "26.9.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-26.9.0.tgz", - "integrity": "sha512-TWJxWGp1J628gxh2KhaH1H1paEdgE2J61BBF1I59c6xWeL5+D1BzMxGDN/nXAfX+aSkR5u80K+XhskK6Gwq9ng==", + "version": "27.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.2.1.tgz", + "integrity": "sha512-l067Uxx7ZT8cO9NJuf+eJHvt6bqJyz2Z29wykyEdz/OtmcELQl2MQGQLX8J94O1cSJWAwUSEvCjwjA7KEK3Hmg==", "dev": true, "requires": { "@typescript-eslint/utils": "^5.10.0" diff --git a/package.json b/package.json index 9e2e8b7ef..11d3e568c 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "@vercel/ncc": "^0.36.0", "eslint": "^8.32.0", "eslint-config-prettier": "^8.6.0", - "eslint-plugin-jest": "^26.9.0", + "eslint-plugin-jest": "^27.2.1", "eslint-plugin-prettier": "^4.2.1", "husky": "^8.0.3", "jest": "^29.3.1",