You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, testing Storage with emulator strangely throws an error. This is documented in the code in useUploadFile.test.ts with comments as such:
// this test fails for some reason with this
// FirebaseError: Firebase Storage: An unknown error occurred, please check the error payload for server response. (storage/unknown)
// ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
// Serialized Error: { code: 'storage/unknown', customData: { serverResponse: '' }, status_: 400, _baseMessage: 'Firebase Storage: An unknown error occurred, please check the error payload for server response. (storage/unknown)', status: 400, _codeEquals: 'Function<_codeEquals>', serverResponse: '' }
// the reason might be happy-dom, which mocks `window` and `document` API
// end to end testing with `playwright` or `cypress` might be a solution
// but requires too much effort and integrating with current codebase (with vite and vitest)
// is not documented very well
// so, skipping this test for now to await for future issues
The text was updated successfully, but these errors were encountered:
Currently, testing Storage with emulator strangely throws an error. This is documented in the code in
useUploadFile.test.ts
with comments as such:The text was updated successfully, but these errors were encountered: