import * as React from 'react'; import { mount } from 'enzyme'; import ConfigProvider from '..'; import Button from '../../button'; describe('ConfigProvider.DynamicTheme', () => { beforeEach(() => { Array.from(document.querySelectorAll('style')).forEach(style => { style.parentNode?.removeChild(style); }); }); it('customize primary color', () => { mount(