(...styles: Record<string, string | number>[])
| 37 | } |
| 38 | |
| 39 | export function parseStyle2String(...styles: Record<string, string | number>[]) { |
| 40 | const style = Object.assign({}, ...styles) |
| 41 | return Object.entries(style).map(([key, value]) => `${key}: ${value};`).join('') |
| 42 | } |
| 43 | |
| 44 | // React 测试工具函数 |
| 45 | export function renderWithProviders( |