Overmind.js state management working with Cypress.io tests
This experiment is an extension of App Actions approach for writing end-to-end tests. Overmind is making it extremely easy to control / spy / stub anything going on inside the application's state.
npm ci
npm start
# from another terminal
npx cypress open
- get-state-spec.js makes assertions against data in the state object
- action-spec.js drives app by invoking actions
- control-effects-spec.js spies and stubs external effects from the application, like making
fetch
to the outside API - visit-overmind-spec.js captures
window.overmind
without need to callsetOvermind
from the application code