MicheleBertoli / react-automata

A state machine abstraction for React
MIT License
1.34k stars 60 forks source link

Jest test - error with react-automata #92

Open smuller97 opened 4 years ago

smuller97 commented 4 years ago

Hi there, I'm currently working on testing my react component where I use react-automata. When I run the test it keeps breaking. The goal is to test my Lights component. I'm using the test function from react-automata called "testStateMachine" because I use a statemachine to run the steps of light switching on a button click.

Here is my code example: https://codesandbox.io/s/statemachine-test-sj3w7

Best regards Kristine