element-plus/jest.setup.js
三咲智子 b8c38a9fe5
chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00

8 lines
244 B
JavaScript

const { config } = require('@vue/test-utils')
const _ResizeObserver = require('resize-observer-polyfill')
config.global.stubs = {}
global.ResizeObserver = _ResizeObserver
process.addListener('unhandledRejection', (err) => console.error(err))