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

spautz / react-hibernate / 4089579833

pending completion
4089579833

push

github

GitHub
build(deps): bump http-cache-semantics from 4.1.0 to 4.1.1

49 of 120 branches covered (40.83%)

Branch coverage included in aggregate %.

150 of 432 relevant lines covered (34.72%)

8.99 hits per line

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

0.0
/packages/dev-helpers/src/jest/renderWithRouterContext.tsx
1
import React, { ReactElement, ComponentType } from 'react';
×
2
import { isElement } from 'react-is';
×
3
import { MemoryRouter, MemoryRouterProps } from 'react-router';
×
4
import { render } from '@testing-library/react';
×
5

6
const renderWithRouterContext = (
×
7
  AppRoot: ReactElement | ComponentType,
8
  routerProps: MemoryRouterProps = {},
×
9
): ReturnType<typeof render> => {
10
  return render(
×
11
    <MemoryRouter {...routerProps}>{isElement(AppRoot) ? AppRoot : <AppRoot />}</MemoryRouter>,
×
12
  );
13
};
14

15
export { renderWithRouterContext };
×
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