Use Django + Faker to generate mock data for MSW without duplicating logic #30
Labels
Frontend/JavaScript
Testing
Third Party Package
This idea is suitable for the third party package ecosystem
Code of Conduct
Feature Description
Allow Django to generate mock data for MSW in the frontend by reusing existing FactoryBoy + Faker factories. The mock data can be exported as a JSON file or JavaScript handler file that MSW can directly use.
Problem
Right now, we're writing mock data twice: once in Django (with factories) and again manually in MSW. This causes duplication and makes it easy for frontend mocks to fall out of sync with backend models.
Request or proposal
proposal
Additional Details
.json
or.js
(with MSW handlers)Implementation Suggestions
The text was updated successfully, but these errors were encountered: