Skip to content

Instantly share code, notes, and snippets.

@entorenee
entorenee / machine.js
Created July 21, 2020 22:16
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@entorenee
entorenee / machine.js
Created July 21, 2020 22:16
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@entorenee
entorenee / machine.js
Created July 21, 2020 22:15
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@entorenee
entorenee / machine.js
Created July 21, 2020 22:14
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@entorenee
entorenee / machine.js
Last active July 21, 2020 22:23
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@entorenee
entorenee / react-testing-library-codemod
Created August 1, 2019 13:45
Codemod for converting to the namespaced @testing-library/react
/* Codemod file using jscodeshift to migrate import paths
* from 'react-testing-library' to '@testing-library/react'.
* Covers both test imports and jest config set up.
*
* NOTE: I did find that jscodeshift inserts with double quotes
* instead of single quotes. If your styleguide uses single quotes
* run Prettier against the result.
*
* To use:
* Download file into your directory: