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

LouisBrunner / dnd-multi-backend / 7105545454

05 Dec 2023 07:21PM CUT coverage: 98.498%. Remained the same
7105545454

push

github

web-flow
chore(deps-dev): bump @typescript-eslint/parser from 6.13.0 to 6.13.2 (#236)

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.13.0 to 6.13.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.13.2/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

63 of 67 branches covered (0.0%)

Branch coverage included in aggregate %.

265 of 266 relevant lines covered (99.62%)

37.11 hits per line

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

100.0
/packages/react-dnd-multi-backend/src/components/Preview.tsx
1
import React, {useContext} from 'react'
69✔
2
import {createPortal} from 'react-dom'
12✔
3
import {Preview as DnDPreview, PreviewProps, Context as PreviewContext, PreviewState} from 'react-dnd-preview'
12✔
4

5
import {useObservePreviews} from '../hooks/useObservePreviews'
12✔
6
import {PreviewPortalContext} from './DndProvider'
12✔
7

8
export const Preview = <T = unknown, El extends Element = Element>(props: PreviewProps<T, El>): JSX.Element | null => {
12✔
9
  const enabled = useObservePreviews()
39✔
10
  const portal = useContext<Element | null>(PreviewPortalContext)
39✔
11
  if (!enabled) {
39✔
12
    return null
27✔
13
  }
14

15
  const result = <DnDPreview<T, El> {...props} />
12✔
16
  if (portal !== null) {
12✔
17
    return createPortal(result, portal)
3✔
18
  }
19
  return result
9✔
20
}
21

22
Preview.Context = PreviewContext
12✔
23
export {PreviewContext}
24
export type {PreviewState}
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