Files
salona/tests/jestSetupFiles.ts
2025-11-26 20:31:17 +03:30

10 lines
532 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// اجرا قبل از setupTests.ts (برای polyfill ها)
import 'whatwg-fetch'; // fetch polyfill for node environment
// اگر به polyfill های دیگر نیاز دارید، اینجا اضافه کنید.
// مثال: globalThis.TextEncoder/TextDecoder در بعضی محیط‌ها لازم است:
if (typeof (globalThis as any).TextEncoder === 'undefined') {
const { TextEncoder, TextDecoder } = require('util');
(globalThis as any).TextEncoder = TextEncoder;
(globalThis as any).TextDecoder = TextDecoder;
}