Skip to content

Commit 55c0188

Browse files
committed
chore(deps-dev): bump eslint
1 parent 30375c7 commit 55c0188

7 files changed

Lines changed: 208 additions & 260 deletions

File tree

__tests__/common/cloudflare/api/fetch-result.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('api', () => {
8888
200
8989
)
9090

91-
await expect(fetchResult(RESOURCE_URL)).rejects.toThrow(
91+
await expect(fetchResult(RESOURCE_URL)).rejects.toThrowError(
9292
`Cloudflare API: response missing 'result'`
9393
)
9494
}

__tests__/common/github/deployment/payload.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ describe(getPayload, () => {
126126

127127
expect(() => {
128128
getPayload(payload)
129-
}).toThrow('Payload is not valid')
129+
}).toThrowError('Payload is not valid')
130130
})
131131

132132
test('throws an error for payloads v1 and missing inputs', () => {
@@ -136,19 +136,21 @@ describe(getPayload, () => {
136136

137137
expect(() => {
138138
getPayload(PAYLOAD_V1)
139-
}).toThrow('Input required and not supplied: cloudflare-account-id')
139+
}).toThrowError('Input required and not supplied: cloudflare-account-id')
140140

141141
stubInputEnv(INPUT_KEY_CLOUDFLARE_ACCOUNT_ID)
142142

143143
expect(() => {
144144
getPayload(PAYLOAD_V1)
145-
}).toThrow('Input required and not supplied: cloudflare-project-name')
145+
}).toThrowError(
146+
'Input required and not supplied: cloudflare-project-name'
147+
)
146148

147149
stubInputEnv(INPUT_KEY_CLOUDFLARE_PROJECT_NAME)
148150

149151
expect(() => {
150152
getPayload(PAYLOAD_V1)
151-
}).not.toThrow()
153+
}).not.toThrowError()
152154
})
153155
})
154156
})

__tests__/common/github/environment.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ describe('environment', () => {
250250

251251
mockQueryGetEnvironment(...response)
252252

253-
await expect(checkEnvironment()).rejects.toThrow(expected)
253+
await expect(checkEnvironment()).rejects.toThrowError(expected)
254254
expect(spySetFailed).toHaveBeenCalledWith(expected)
255255
})
256256
})

__tests__/common/inputs.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ describe('common', () => {
2727

2828
const {useCommonInputs} = await setup()
2929

30-
expect(() => useCommonInputs()).toThrow(
30+
expect(() => useCommonInputs()).toThrowError(
3131
/input required and not supplied: cloudflare-api-token/i
3232
)
3333

3434
stubInputEnv(INPUT_KEY_CLOUDFLARE_API_TOKEN)
3535

36-
expect(() => useCommonInputs()).toThrow(
36+
expect(() => useCommonInputs()).toThrowError(
3737
/input required and not supplied: github-token/i
3838
)
3939

4040
stubInputEnv(INPUT_KEY_GITHUB_TOKEN)
4141

42-
expect(() => useCommonInputs()).not.toThrow()
42+
expect(() => useCommonInputs()).not.toThrowError()
4343
})
4444

4545
test('returns correct values', async () => {

__tests__/deploy/inputs.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('deploy', () => {
3232

3333
const {useInputs} = await setup()
3434

35-
expect(() => useInputs()).toThrow(
35+
expect(() => useInputs()).toThrowError(
3636
'Input required and not supplied: cloudflare-account-id'
3737
)
3838
})

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@changesets/changelog-github": "0.5.1",
5555
"@changesets/cli": "2.29.7",
5656
"@cloudflare/types": "7.0.0",
57-
"@eslint/js": "9.35.0",
57+
"@eslint/js": "9.39.1",
5858
"@graphql-codegen/cli": "5.0.7",
5959
"@graphql-codegen/client-preset": "4.8.3",
6060
"@graphql-typed-document-node/core": "3.2.0",
@@ -66,21 +66,21 @@
6666
"@tsconfig/node24": "24.0.1",
6767
"@types/json-schema": "7.0.15",
6868
"@types/node": "24.10.1",
69-
"@vitest/eslint-plugin": "1.4.3",
69+
"@vitest/eslint-plugin": "1.5.1",
7070
"dotenv": "17.2.2",
7171
"esbuild": "0.25.9",
72-
"eslint": "9.35.0",
72+
"eslint": "9.39.1",
7373
"eslint-config-prettier": "10.1.8",
74-
"eslint-plugin-unicorn": "61.0.1",
75-
"globals": "16.3.0",
74+
"eslint-plugin-unicorn": "62.0.0",
75+
"globals": "16.5.0",
7676
"graphql": "16.11.0",
7777
"graphql-tag": "2.12.6",
7878
"knip": "5.63.1",
7979
"prettier": "3.7.3",
8080
"prettier-plugin-packagejson": "2.5.20",
8181
"tsx": "4.20.5",
8282
"typescript": "5.9.2",
83-
"typescript-eslint": "8.42.0",
83+
"typescript-eslint": "8.48.0",
8484
"undici": "7.15.0",
8585
"vite": "7.2.4",
8686
"vitest": "4.0.14",

0 commit comments

Comments
 (0)