1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-26 14:44:36 +02:00
Files
misskey/packages/frontend/test/e2e/ignorable-errors.ts
kakkokari-gtyih 38888cfe85 fix
2026-07-08 16:00:48 +09:00

15 lines
445 B
TypeScript

/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export const IGNORABLE_ERROR_MESSAGES = [
'The source image cannot be decoded',
'ResizeObserver loop limit exceeded',
'ResizeObserver loop completed with undelivered notifications',
] as const;
export function isIgnorableErrorMessage(message: string): boolean {
return IGNORABLE_ERROR_MESSAGES.some((text) => message.includes(text));
}