How to use the react-dnd-test-backend 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 / 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 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;


A mock backend for testing React DnD apps

Latest version published 2 years ago

Package Health Score

73 / 100
Full package analysis

Popular react-dnd-test-backend functions