• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / 30c6b14cf72bf2df4c2ac8a578b09d5053a0b516

14 Jul 2025 08:34AM UTC coverage: 53.548% (+0.1%) from 53.412%
30c6b14cf72bf2df4c2ac8a578b09d5053a0b516

Pull #22356

github

kyrylo-polozenko-newfold
fix: lint js
Pull Request #22356: Feature/get redirects

8217 of 14316 branches covered (57.4%)

Branch coverage included in aggregate %.

1 of 23 new or added lines in 9 files covered. (4.35%)

105 existing lines in 8 files now uncovered.

30345 of 57698 relevant lines covered (52.59%)

41381.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/js/src/redirects/appProvider.js
1
import { StyleSheetManager } from "styled-components";
2
import App from "./app";
3
import { SlotFillProvider } from "@wordpress/components";
4
import { HashRouter } from "react-router-dom";
5

6
/**
7
 * Provider component for the redirects application.
8
 * @returns {JSX.Element} The wrapped redirects application with providers.
9
 */
NEW
10
export const AppProvider = () => {
×
11
        // Prevent Styled Components' styles by adding the stylesheet to a div that is in the shadow DOM.
NEW
12
        const shadowHost = document.createElement( "div" );
×
NEW
13
        const shadowRoot = shadowHost.attachShadow( { mode: "open" } );
×
NEW
14
        document.body.appendChild( shadowHost );
×
15

NEW
16
        return (
×
17
                <StyleSheetManager target={ shadowRoot }>
18
                        <SlotFillProvider>
19
                                <HashRouter>
20
                                        <App />
21
                                </HashRouter>
22
                        </SlotFillProvider>
23
                </StyleSheetManager>
24
        );
25
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc