Skip to main content
FlowDrop provides several testing layers: pure unit tests via WorkflowAdapter (no DOM required), integration tests using Mock Service Worker, and end-to-end tests with Playwright.

Unit testing with WorkflowAdapter

WorkflowAdapter works in Node.js without a browser — ideal for testing your workflow logic in Vitest or Jest.

MSW handler setup

Use Mock Service Worker to mock the FlowDrop REST API in integration tests.

Handler definitions

Server setup (Vitest)

Mount API integration test

Test that FlowDrop mounts and loads correctly in JSDOM:

Playwright E2E tests

Test the full editor experience in a real browser:

Testing custom nodes

Validate your node metadata structure using WorkflowAdapter: