(counter: number)
| 701 | const spy = vi.fn(); |
| 702 | |
| 703 | const createSampleMachine = (counter: number) => { |
| 704 | const child = createMachine({ |
| 705 | on: { |
| 706 | EV: { |
| 707 | actions: () => { |
| 708 | spy(counter); |
| 709 | } |
| 710 | } |
| 711 | } |
| 712 | }); |
| 713 | |
| 714 | return createMachine({ |
| 715 | context: ({ spawn }) => { |
| 716 | return { |
| 717 | childRef: spawn(child) |
| 718 | }; |
| 719 | } |
| 720 | }); |
| 721 | }; |
| 722 | |
| 723 | const machine1 = createSampleMachine(1); |
| 724 | const machine2 = createSampleMachine(2); |
no test coverage detected
searching dependent graphs…