// import { StyleProvider } from '../../cssinjs'; import { extractStyle } from '../index'; import { ConfigProvider } from '../../../components'; const testGreenColor = '#008000'; describe('Static-Style-Extract', () => { it('should extract static styles', () => { const cssText = extractStyle(); expect(cssText).not.toContain(testGreenColor); expect(cssText).toMatchSnapshot(); }); it('should extract static styles with customTheme', () => { const cssText = extractStyle(node => { return ( {node} ); }); expect(cssText).toContain(testGreenColor); expect(cssText).toMatchSnapshot(); }); // it('with custom hashPriority', () => { // const cssText = extractStyle( // (node) => ( // // // {node} // // // ), // ); // expect(cssText).toContain(testGreenColor); // expect(cssText).not.toContain(':where'); // expect(cssText).toMatchSnapshot(); // // const cssText2 = extractStyle((node) => ( // // {node} // // )); // expect(cssText2).toContain(':where'); // }); });