framework/js-packages/jest-config/pollyfills.js

4 lines
103 B
JavaScript
Raw Normal View History

2024-09-28 22:47:45 +08:00
import { TextEncoder, TextDecoder } from 'util';
Object.assign(global, { TextDecoder, TextEncoder });