mirror of
https://github.com/microsoft/data-formulator.git
synced 2026-11-04 12:01:37 +00:00
Tests
The test tree is organized with a clear backend/frontend split:
tests/backend- backend unit tests, integration tests, and contract tests
- driven by
pytest - regression tests directly related to
py-src/data_formulator/**
tests/frontend- frontend unit tests powered by Vitest + @testing-library/react (jsdom)
- covers pure functions, Redux selectors, and React component rendering
- see
tests/frontend/README.mdfor directory layout details
Suggested Commands
Run backend tests (pytest):
pytest tests/backend
Run frontend tests (Vitest):
npm test
Run frontend tests in watch mode:
npm run test:watch