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

LouisBrunner / dnd-multi-backend / 5789803565

pending completion
5789803565

Pull #158

github

web-flow
chore(deps-dev): bump jest-environment-jsdom from 29.6.1 to 29.6.2

Bumps [jest-environment-jsdom](https://github.com/facebook/jest/tree/HEAD/packages/jest-environment-jsdom) from 29.6.1 to 29.6.2.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v29.6.2/packages/jest-environment-jsdom)

---
updated-dependencies:
- dependency-name: jest-environment-jsdom
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #158: chore(deps-dev): bump jest-environment-jsdom from 29.6.1 to 29.6.2

63 of 67 branches covered (94.03%)

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