MCPcopy
hub / github.com/statelyai/xstate / useActor.test.tsx

File useActor.test.tsx

packages/xstate-react/test/useActor.test.tsx:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { act, fireEvent, screen } from '@testing-library/react';
2import { setTimeout as sleep } from 'node:timers/promises';
3import * as React from 'react';
4import { useState } from 'react';

Callers

nothing calls this directly

Calls 15

describeEachReactModeFunction · 0.90
fromPromiseFunction · 0.90
fromCallbackFunction · 0.90
setupFunction · 0.90
fromObservableFunction · 0.90
createMachineFunction · 0.85
assignFunction · 0.85
createActorFunction · 0.85
raiseFunction · 0.85
provideMethod · 0.80
sendMethod · 0.80
fnMethod · 0.80

Tested by

no test coverage detected