attempt fixes

This commit is contained in:
Norbert de Langen 2025-01-23 11:54:19 +01:00
parent 1c4015a341
commit eb293ac8d9
5 changed files with 45 additions and 38 deletions

View File

@ -141,7 +141,7 @@ export const getInteractions = (finalStatus: CallStates) =>
.filter((call) => call.interceptable)
.map((call) => ({
...call,
childCallIds: [],
childCallIds: [] as any[],
isCollapsed: false,
isHidden: false,
toggleCollapsed: () => {},

View File

@ -53,7 +53,7 @@ it('with no staticDirs favicon should return default', async () => {
it('with staticDirs containing a single favicon.ico should return the found favicon', async () => {
const location = 'static';
existsSyncMock.mockImplementation((p: string | Buffer | URL) => {
existsSyncMock.mockImplementation((p) => {
if (p === createPath(location)) {
return true;
}
@ -69,7 +69,7 @@ it('with staticDirs containing a single favicon.ico should return the found favi
it('with staticDirs containing a single favicon.svg should return the found favicon', async () => {
const location = 'static';
existsSyncMock.mockImplementation((p: string | Buffer | URL) => {
existsSyncMock.mockImplementation((p) => {
if (p === createPath(location)) {
return true;
}
@ -85,7 +85,7 @@ it('with staticDirs containing a single favicon.svg should return the found favi
it('with staticDirs containing a multiple favicons should return the first favicon and warn', async () => {
const location = 'static';
existsSyncMock.mockImplementation((p: string | Buffer | URL) => {
existsSyncMock.mockImplementation((p) => {
if (p === createPath(location)) {
return true;
}
@ -107,7 +107,7 @@ it('with staticDirs containing a multiple favicons should return the first favic
it('with multiple staticDirs containing a multiple favicons should return the first favicon and warn', async () => {
const locationA = 'static-a';
const locationB = 'static-b';
existsSyncMock.mockImplementation((p: string | Buffer | URL) => {
existsSyncMock.mockImplementation((p) => {
if (p === createPath(locationA)) {
return true;
}

View File

@ -146,7 +146,7 @@ export const InAddonPanelNoControls = {
args: {
...InAddonPanel.args,
rows: Object.fromEntries(
Object.entries(InAddonPanel.args.rows).map(([k, v]) => [k, { ...v, control: null }])
Object.entries(InAddonPanel.args.rows).map(([k, v]) => [k, { ...v, control: null as any }])
),
},
};

View File

@ -67,9 +67,9 @@
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@testing-library/svelte": "^5.2.4",
"expect-type": "^0.15.0",
"svelte": "^5.0.5",
"svelte-check": "^4.0.5",
"expect-type": "^1.1.0",
"svelte": "^5.19.2",
"svelte-check": "^4.1.4",
"typescript": "^5.7.3"
},
"peerDependencies": {

View File

@ -7486,9 +7486,9 @@ __metadata:
"@storybook/theming": "workspace:*"
"@sveltejs/vite-plugin-svelte": "npm:^4.0.0"
"@testing-library/svelte": "npm:^5.2.4"
expect-type: "npm:^0.15.0"
svelte: "npm:^5.0.5"
svelte-check: "npm:^4.0.5"
expect-type: "npm:^1.1.0"
svelte: "npm:^5.19.2"
svelte-check: "npm:^4.1.4"
sveltedoc-parser: "npm:^4.2.1"
ts-dedent: "npm:^2.0.0"
type-fest: "npm:~2.19"
@ -8225,7 +8225,7 @@ __metadata:
languageName: node
linkType: hard
"@types/estree@npm:*, @types/estree@npm:1.0.6, @types/estree@npm:^1.0.0, @types/estree@npm:^1.0.1, @types/estree@npm:^1.0.5, @types/estree@npm:^1.0.6":
"@types/estree@npm:*, @types/estree@npm:1.0.6, @types/estree@npm:^1.0.0, @types/estree@npm:^1.0.5, @types/estree@npm:^1.0.6":
version: 1.0.6
resolution: "@types/estree@npm:1.0.6"
checksum: 10c0/cdfd751f6f9065442cd40957c07fd80361c962869aa853c1c2fd03e101af8b9389d8ff4955a43a6fcfa223dd387a089937f95be0f3eec21ca527039fd2d9859a
@ -12507,6 +12507,13 @@ __metadata:
languageName: node
linkType: hard
"clsx@npm:^2.1.1":
version: 2.1.1
resolution: "clsx@npm:2.1.1"
checksum: 10c0/c4c8eb865f8c82baab07e71bfa8897c73454881c4f99d6bc81585aecd7c441746c1399d08363dc096c550cceaf97bd4ce1e8854e1771e9998d9f94c4fe075839
languageName: node
linkType: hard
"co@npm:^4.6.0":
version: 4.6.0
resolution: "co@npm:4.6.0"
@ -15305,10 +15312,10 @@ __metadata:
languageName: node
linkType: hard
"esm-env@npm:^1.0.0":
version: 1.0.0
resolution: "esm-env@npm:1.0.0"
checksum: 10c0/6ea0001410224ebc18de4a83ce97dbdca6abc83ea4bbe91625aa3aead70793bb98dfa089f38e2cc5c13b7b025668d0649d5e25f2f9e8cca0f4aa3ad3406870d0
"esm-env@npm:^1.2.1":
version: 1.2.2
resolution: "esm-env@npm:1.2.2"
checksum: 10c0/3d25c973f2fd69c25ffff29c964399cea573fe10795ecc1d26f6f957ce0483d3254e1cceddb34bf3296a0d7b0f1d53a28992f064ba509dfe6366751e752c4166
languageName: node
linkType: hard
@ -15360,13 +15367,12 @@ __metadata:
languageName: node
linkType: hard
"esrap@npm:^1.2.2":
version: 1.2.2
resolution: "esrap@npm:1.2.2"
"esrap@npm:^1.4.3":
version: 1.4.3
resolution: "esrap@npm:1.4.3"
dependencies:
"@jridgewell/sourcemap-codec": "npm:^1.4.15"
"@types/estree": "npm:^1.0.1"
checksum: 10c0/a3a0b665c034f604a162b910346309c64c42635c5d2e8704a27afcdf4e6d4c529e05475d1875d6b3e0d550f8470986116414097230ab3a7c565b85091ca5e177
checksum: 10c0/78fe1601335190402a75cebf57b410c681d9429a79befedaf5778c33927f0b23b8652486c6b2c89c5a59d9172f99c811c03434bdf8965f0686a3e4ebdcd061fa
languageName: node
linkType: hard
@ -18667,12 +18673,12 @@ __metadata:
languageName: node
linkType: hard
"is-reference@npm:^3.0.0, is-reference@npm:^3.0.2":
version: 3.0.2
resolution: "is-reference@npm:3.0.2"
"is-reference@npm:^3.0.0, is-reference@npm:^3.0.3":
version: 3.0.3
resolution: "is-reference@npm:3.0.3"
dependencies:
"@types/estree": "npm:*"
checksum: 10c0/652d31b405e8e8269071cee78fe874b072745012eba202c6dc86880fd603a65ae043e3160990ab4a0a4b33567cbf662eecf3bc6b3c2c1550e6c2b6cf885ce5aa
"@types/estree": "npm:^1.0.6"
checksum: 10c0/35edd284cfb4cd9e9f08973f20e276ec517eaca31f5f049598e97dbb2d05544973dde212dac30fddee5b420930bff365e2e67dcd1293d0866c6720377382e3e5
languageName: node
linkType: hard
@ -27704,9 +27710,9 @@ __metadata:
languageName: node
linkType: hard
"svelte-check@npm:^4.0.5":
version: 4.0.5
resolution: "svelte-check@npm:4.0.5"
"svelte-check@npm:^4.1.4":
version: 4.1.4
resolution: "svelte-check@npm:4.1.4"
dependencies:
"@jridgewell/trace-mapping": "npm:^0.3.25"
chokidar: "npm:^4.0.1"
@ -27718,7 +27724,7 @@ __metadata:
typescript: ">=5.0.0"
bin:
svelte-check: bin/svelte-check
checksum: 10c0/192ee83f83169408b5f0b819440349f53e256db868d59fdd2422e831ef581891f5f257632dd3e632b12518ca307e1f99ff97455f56c19c3d2a5ee7be6391a181
checksum: 10c0/f0161214078e7b16178167daa5c82a1790759859946b8cd4a9f5ae866345c502f1f27cadc6734b36709ad75c79650fd85cae286f7a21c78e403521e35b5ebb20
languageName: node
linkType: hard
@ -27810,9 +27816,9 @@ __metadata:
languageName: node
linkType: hard
"svelte@npm:^5.0.0, svelte@npm:^5.0.0-next.268, svelte@npm:^5.0.5":
version: 5.0.5
resolution: "svelte@npm:5.0.5"
"svelte@npm:^5.0.0, svelte@npm:^5.0.0-next.268, svelte@npm:^5.0.5, svelte@npm:^5.19.2":
version: 5.19.2
resolution: "svelte@npm:5.19.2"
dependencies:
"@ampproject/remapping": "npm:^2.3.0"
"@jridgewell/sourcemap-codec": "npm:^1.5.0"
@ -27821,13 +27827,14 @@ __metadata:
acorn-typescript: "npm:^1.4.13"
aria-query: "npm:^5.3.1"
axobject-query: "npm:^4.1.0"
esm-env: "npm:^1.0.0"
esrap: "npm:^1.2.2"
is-reference: "npm:^3.0.2"
clsx: "npm:^2.1.1"
esm-env: "npm:^1.2.1"
esrap: "npm:^1.4.3"
is-reference: "npm:^3.0.3"
locate-character: "npm:^3.0.0"
magic-string: "npm:^0.30.11"
zimmerframe: "npm:^1.1.2"
checksum: 10c0/9600bc2901b11d8d50f55a4fcbf8499be7475e7adb51222e2ae1aaf18f39207f2f6ca02bbfde1d3d1c6bc84e9058242b42f471deddf8225820d5d11ee83c3029
checksum: 10c0/9931d2b3a6a5ec22a433529c7a7a29e2bbe32257348db3f368163f844e784bc0091cce3e8b1cd22b0be6a167aeb9109c46d2cd7c68222dcb97b362c01a322bd1
languageName: node
linkType: hard