Skip to content

Commit 1954652

Browse files
committed
Bump storybook dependencies, fix eslint and tsconfigs
1 parent d35a58f commit 1954652

File tree

7 files changed

+575
-650
lines changed

7 files changed

+575
-650
lines changed

.github/prompts/generate-unit-tests-for-selected-file.prompt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
mode: 'agent'
3-
tools: ['codebase', 'editFiles', 'runTests', 'search']
3+
tools: ['search/codebase', 'edit/editFiles', 'search']
44
description: 'Generate unit tests for selected file'
55
---
66

.storybook/public/mockServiceWorker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* - Please do NOT modify this file.
88
*/
99

10-
const PACKAGE_VERSION = '2.11.3'
10+
const PACKAGE_VERSION = '2.11.5'
1111
const INTEGRITY_CHECKSUM = '4db4a41e972cec1b64cc569c66952d82'
1212
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
1313
const activeClientIds = new Set()
@@ -205,6 +205,7 @@ async function resolveMainClient(event) {
205205
* @param {FetchEvent} event
206206
* @param {Client | undefined} client
207207
* @param {string} requestId
208+
* @param {number} requestInterceptedAt
208209
* @returns {Promise<Response>}
209210
*/
210211
async function getResponse(event, client, requestId, requestInterceptedAt) {

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@
1717
"bytediff",
1818
"camelcase",
1919
"chpt",
20+
"chromaui",
2021
"classlist",
2122
"crossorigin",
23+
"dbaeumer",
2224
"deepmerge",
2325
"derequire",
26+
"esbenp",
2427
"getusermedia",
2528
"ICPU",
2629
"initialise",

eslint.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import tseslint from "typescript-eslint";
1616

1717
// Good reference: https://github.com/dustinspecker/awesome-eslint#readme
1818

19-
// Source and test files
2019
const CLIENT_ONLY_FILES = "src/**/*.{js,ts}";
20+
const TEST_ONLY_FILES = "src/**/__tests__/**";
2121
const STORYBOOK_FILES = ".storybook/**/*.{js,ts}";
2222

2323
const ALL_FILES = [
@@ -188,13 +188,15 @@ export default tseslint.config(
188188
},
189189
},
190190
{
191+
files: [TEST_ONLY_FILES],
191192
...vitest.configs.recommended,
192193
rules: {
193194
...vitest.configs.recommended.rules,
194195
"vitest/prefer-expect-assertions": "off",
195196
"vitest/max-expects": "off",
196197
"vitest/prefer-lowercase-title": "off",
197198
"vitest/prefer-describe-function-title": "off",
199+
// Allow hooks inside test files
198200
"vitest/no-hooks": [
199201
"error",
200202
{ allow: ["beforeAll", "afterAll", "beforeEach", "afterEach"] },

0 commit comments

Comments
 (0)