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