Add comment why tests are skipped

This commit is contained in:
Maximilian Harz 2025-06-10 13:22:27 +02:00
parent 924d9a3f4d
commit 301e02f067

View File

@ -1,3 +1,5 @@
/* Currently this test suite is skipped due to the need for a browser environment. We could set
up a headless browser test environment in the future, e.g. https://vitest.dev/guide/browser/ */
import { readFileSync } from 'node:fs'
import path from 'node:path'
@ -12,8 +14,6 @@ const testImages = testImagePaths.map((imagePath) =>
readFileSync(path.join(__dirname, '../../', imagePath)),
)
// vi.spyOn(global, 'FileReader').mockImplementation((fileReader: FileReader) => fileReader)
describe('getImageDimensions', () => {
it.skip('returns the correct dimensions for a valid image file', async () => {
const file = new File([testImages[0]], 'image1.jpg', { type: 'image/jpeg' })