Skip to main content
Module

x/xstate/test/smoke.test.ts

State machines and statecharts for the modern web.
Go to Latest
File
import { Machine } from '../src';
describe('smoke test', () => { it('should work with built files', () => { expect(() => { return Machine({ id: 'light', initial: 'green', context: { canTurnGreen: true }, states: { green: { after: { 1000: 'yellow' } }, yellow: { after: { 1000: [{ target: 'red' }] } }, red: { after: [{ delay: 1000, target: 'green' }] } } }); }).not.toThrow(); });});