setUpComponentTest(); }); describe('Simple Test Harness', function () { it('creates simple counter component', function () { $component = ComponentFactory::counter(initialCount: 5); expect($component->getData()->toArray())->toBe(['count' => 5]); }); it('executes increment action', function () { $component = ComponentFactory::counter(); $result = $this->callAction($component, 'increment'); expect($result->state->data['count'])->toBe(1); }); it('asserts state equals', function () { $component = ComponentFactory::counter(10); $result = $this->callAction($component, 'increment'); $this->assertStateEquals($result, ['count' => 11]); }); });