element-plus/jest.setup.js
三咲智子 a902be5917
refactor(utils)!: remove resize-observer-polyfill (#4058)
* refactor(utils): remove resize-observer-polyfill

* test: add resize-observer-polyfill for tests only
2021-10-30 21:48:25 +08:00

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