How to use react-dnd-test-backend - 3 common examples

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 / core / dnd-core / src / __tests__ / DragDropManager.spec.ts View on Github external
beforeEach(() => {
		manager = new DragDropManagerImpl()
		backend = createTestBackend(manager, null, null) as TestBackend
		;(manager as any).receiveBackend(backend)
		registry = manager.getRegistry()
	})
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
}
github LouisBrunner / dnd-multi-backend / packages / react-dnd-preview / examples / App.js View on Github external
setup = (manager) => {
    this.manager = manager;
    this.backend = new TestBackend(manager);
    this.registry = manager.getRegistry();
    return this.backend;
  }

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