Merge branch 'master' into next-merge-master

This commit is contained in:
MadCcc 2022-10-14 20:02:09 +08:00
commit 2f3b4c616a

View File

@ -15,6 +15,8 @@ if (typeof window !== 'undefined') {
// ref: https://github.com/ant-design/ant-design/issues/18774
if (!window.matchMedia) {
Object.defineProperty(global.window, 'matchMedia', {
writable: true,
configurable: true,
value: jest.fn(query => ({
matches: query.includes('max-width'),
addListener: jest.fn(),