Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { render } from "@testing-library/react"; import React from "react"; import { ThemeProvider } from "emotion-theming"; const renderWithTheme = (ui: React.ReactChild, options = {}) => { const theme = { colors: { white: "#f7f7f7", borderColor: "#dde2e7", lightGray: "#9f9d9d", darkGray: "#343A40", black: "#2d2d2d", fontColor: "#212529", logoBlack: "#1d2122", accentColor: "#d83326", }, }; return render(<ThemeProvider theme={theme}>{ui}</ThemeProvider>, options); }; export default renderWithTheme; |