Skip to content

Instantly share code, notes, and snippets.

@danazkari
Last active December 14, 2022 16:39
Show Gist options
  • Save danazkari/c16ae19cb7621fa943ffbf0a6e847706 to your computer and use it in GitHub Desktop.
Save danazkari/c16ae19cb7621fa943ffbf0a6e847706 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
const fetchMachine = Machine({
id: 'Feature Definition',
initial: 'No Work 😉',
context: {
hasBeenReducedToMin: false,
includesIntegrationTests: false,
hasTestScenarios: false
},
states: {
'No Work 😉': {
on: {
'PO Receives Reqs': 'Initial Defined Reqs'
}
},
'Initial Defined Reqs': {
on: {
'QA Feature Discretization': 'Feature Decomposed',
}
},
'Feature Decomposed': {
on: {
'Split Feature': 'Initial Defined Reqs',
'Define Integration Tests': 'Feature with integration tests'
}
},
'Feature with integration tests': {}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment