mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 04:37:47 +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
|