Skip to content

Commit 9b7ce2a

Browse files
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 <[email protected]>
1 parent 9839780 commit 9b7ce2a

File tree

5 files changed

+17
-21
lines changed

5 files changed

+17
-21
lines changed

__tests__/get-inputs.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,6 @@ describe('getInputs()', () => {
184184

185185
expect(() => {
186186
getInputs();
187-
}).toThrowError('Use either of enable_jekyll or disable_nojekyll');
187+
}).toThrow('Use either of enable_jekyll or disable_nojekyll');
188188
});
189189
});

__tests__/git-utils.test.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ describe('setRepo()', () => {
148148
const date = new Date();
149149
const unixTime = date.getTime();
150150
const workDir = await getWorkDirName(`${unixTime}`);
151-
await expect(setRepo(inps, remoteURL, workDir)).rejects.toThrowError(
151+
await expect(setRepo(inps, remoteURL, workDir)).rejects.toThrow(
152152
'destination_dir should be a relative path'
153153
);
154154
});
@@ -241,17 +241,13 @@ describe('setCommitAuthor()', () => {
241241
test('throw error user_email is undefined', async () => {
242242
const userName = 'custom-octocat';
243243
const userEmail = '';
244-
await expect(setCommitAuthor(userName, userEmail)).rejects.toThrowError(
245-
'user_email is undefined'
246-
);
244+
await expect(setCommitAuthor(userName, userEmail)).rejects.toThrow('user_email is undefined');
247245
});
248246

249247
test('throw error user_name is undefined', async () => {
250248
const userName = '';
251249
const userEmail = '[email protected]';
252-
await expect(setCommitAuthor(userName, userEmail)).rejects.toThrowError(
253-
'user_name is undefined'
254-
);
250+
await expect(setCommitAuthor(userName, userEmail)).rejects.toThrow('user_name is undefined');
255251
});
256252
});
257253

__tests__/set-tokens.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ describe('setGithubToken()', () => {
7070
'refs/heads/gh-pages-base',
7171
'push'
7272
);
73-
}).toThrowError('You deploy from gh-pages-base to gh-pages-base');
73+
}).toThrow('You deploy from gh-pages-base to gh-pages-base');
7474
});
7575

7676
test('throw error master to master', () => {
7777
expect(() => {
7878
setGithubToken('GITHUB_TOKEN', 'owner/repo', 'master', '', 'refs/heads/master', 'push');
79-
}).toThrowError('You deploy from master to master');
79+
}).toThrow('You deploy from master to master');
8080
});
8181

8282
test('throw error external repository with GITHUB_TOKEN', () => {
@@ -89,7 +89,7 @@ describe('setGithubToken()', () => {
8989
'refs/heads/master',
9090
'push'
9191
);
92-
}).toThrowError(`\
92+
}).toThrow(`\
9393
The generated GITHUB_TOKEN (github_token) does not support to push to an external repository.
9494
Use deploy_key or personal_token.
9595
`);

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"@vercel/ncc": "^0.36.0",
6565
"eslint": "^8.32.0",
6666
"eslint-config-prettier": "^8.6.0",
67-
"eslint-plugin-jest": "^26.9.0",
67+
"eslint-plugin-jest": "^27.2.1",
6868
"eslint-plugin-prettier": "^4.2.1",
6969
"husky": "^8.0.3",
7070
"jest": "^29.3.1",

0 commit comments

Comments
 (0)