mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
a902be5917
* refactor(utils): remove resize-observer-polyfill * test: add resize-observer-polyfill for tests only
8 lines
229 B
JavaScript
8 lines
229 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
const { config } = require('@vue/test-utils')
|
|
const _ResizeObserver = require('resize-observer-polyfill')
|
|
|
|
config.global.stubs = {}
|
|
|
|
global.ResizeObserver = _ResizeObserver
|