mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
Add comment why tests are skipped
This commit is contained in:
parent
924d9a3f4d
commit
301e02f067
@ -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' })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user