You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a conflict of interests right now with fixtures:
We want them to be semi accurate to generate mocks for the UI
We want them to always be idempotent to work in tests
While yes, you could technically achieve 1/2, its quite difficult if we want realistic mock data.
I think the solution here is to break it up, rename them to factories (thats what they are), and have fixtures inhereit from that with predetermined values. Whenever a test needs multiple variants of a fixture, it will be required to override it. That ensures we've got stable-ish fixtures.
The text was updated successfully, but these errors were encountered:
There's a conflict of interests right now with fixtures:
We want them to be semi accurate to generate mocks for the UI
We want them to always be idempotent to work in tests
While yes, you could technically achieve 1/2, its quite difficult if we want realistic mock data.
I think the solution here is to break it up, rename them to factories (thats what they are), and have fixtures inhereit from that with predetermined values. Whenever a test needs multiple variants of a fixture, it will be required to override it. That ensures we've got stable-ish fixtures.
The text was updated successfully, but these errors were encountered: