How to use the react-dnd-test-backend.getInstance function in react-dnd-test-backend

To help you get started, we’ve selected a few react-dnd-test-backend examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-dnd / react-dnd / packages / testing / test-utils / src / utils.tsx View on Github external
export function getBackendFromInstance(
	instance: DndComponent,
): T {
	return getInstance() as any
}

react-dnd-test-backend

A mock backend for testing React DnD apps

MIT
Latest version published 3 years ago

Package Health Score

71 / 100
Full package analysis

Popular react-dnd-test-backend functions