This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const LevelCarouselMachine = Machine({ | |
| id: 'LevelCarousel', | |
| initial: 'default', | |
| states: { | |
| default: { | |
| on: { | |
| RERENDER_EMPTY: 'empty', | |
| RERENDER_SUCCESS: 'success', | |
| }, | |
| meta: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const LevelItemMachine = Machine({ | |
| id: 'LevelItem', | |
| initial: 'default', | |
| states: { | |
| default: { | |
| on: { | |
| RERENDER_EMPTY: 'empty', | |
| RERENDER_SUCCESS: 'success', | |
| }, | |
| meta: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const LevelModalMachine = Machine({ | |
| id: 'LevelModal', | |
| initial: 'default', | |
| states: { | |
| default: { | |
| on: { | |
| RERENDER_EMPTY: 'empty', | |
| RERENDER_SUCCESS: 'success', | |
| CLICK_CLOSE_BUTTON: 'onClose', | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const LevelMachine = Machine({ | |
| id: 'Level', | |
| initial: 'default', | |
| states: { | |
| default: { | |
| initial: 'initial', | |
| states: { | |
| initial: { | |
| meta: { | |
| test: ({ getByTestId }) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const walletMachine = Machine({ | |
| id: 'Wallet', | |
| initial: 'default', | |
| states: { | |
| default: { | |
| initial: 'initial', | |
| states: { | |
| initial: { | |
| meta: { | |
| test: ({ getByTestId }) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const contentMachine = Machine({ | |
| id: 'content', | |
| initial: 'initiating', | |
| states: { | |
| initiating: { | |
| on: { | |
| FINISHED_INITIAL: 'login' | |
| }, | |
| meta: { | |
| test: ({ queryByTestId }) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const appMachine = Machine({ | |
| id: 'app', | |
| initial: 'initiating', | |
| states: { | |
| initiating: { | |
| on: { | |
| FINISHED_INITIAL: 'initialled' | |
| }, | |
| meta: { | |
| test: ({ queryByTestId }) => { |