diff --git a/package.json b/package.json index ee4515a43..96851c68d 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,6 @@ "@typescript-eslint/eslint-plugin": "~6.7.4", "@typescript-eslint/parser": "~6.7.4", "@vitejs/plugin-react": "~4.1.0", - "@vitest/coverage-v8": "^1.2.2", "ace-builds": "~1.28.0", "bootstrap": "~5.3.2", "classnames": "~2.3.2", diff --git a/src/components/settings-page/image-localiser.tsx b/src/components/settings-page/image-localiser.tsx index bf542a6a8..bb2b991d8 100644 --- a/src/components/settings-page/image-localiser.tsx +++ b/src/components/settings-page/image-localiser.tsx @@ -38,10 +38,10 @@ async function asyncSome(arr: Iterable, predicate: (x: X) => Promise('none'); @@ -52,10 +52,7 @@ function ImageLocaliser(props: Props): JSX.Element { setLocalisationStatus((curr) => { return { ...curr, [device.ieee_address]: 'init' }; }); - const success = await asyncSome([ - getZ2mDeviceImagePng, - getZ2mDeviceImage, - ], async (generator) => { + const success = await asyncSome([getZ2mDeviceImagePng, getZ2mDeviceImage], async (generator) => { const imageUrl = generator(device); const imageContent = await downloadImage(imageUrl); await setDeviceOptions(device.ieee_address, { icon: imageContent }); diff --git a/vite.config.js b/vite.config.js index b7ce1f359..99c9bac56 100644 --- a/vite.config.js +++ b/vite.config.js @@ -21,7 +21,7 @@ export default defineConfig(async ({ command, mode }) => { environment: 'jsdom', setupFiles: '../setupTests.js', coverage: { - provider: 'v8' + provider: 'v8', }, onConsoleLog(log, type) { if (log?.includes('18next')) {