element-plus/jest.setup.js

8 lines
244 B
JavaScript
Raw Normal View History

const { config } = require('@vue/test-utils')
const _ResizeObserver = require('resize-observer-polyfill')
config.global.stubs = {}
global.ResizeObserver = _ResizeObserver
2021-11-12 05:38:50 +08:00
process.addListener('unhandledRejection', (err) => console.error(err))