Skip to content

Demo and tests ​

Run the demo ​

The demo is one article you can edit from Livewire, React and Vue at the same time.

bash
npm install            # in the repository root, once
cd demo
composer install && npm install
cp .env.example .env && php artisan key:generate
touch database/database.sqlite && php artisan migrate --seed
npm run build && php artisan serve

Open http://localhost:8000, then pick a person and a stack. Use a private window for each extra person.

Testing ​

bash
composer install && npm install

composer test          # Pest: the merge engine, sync, saving, Livewire
npm test               # node:test: the merge engine, the browser client, the React adapter
npm run lint
npm run typecheck      # the type declarations, against the README's code

cd demo && php artisan migrate:fresh --seed && php artisan serve --port=8123 &
node tests/browser/smoke.mjs    # three real browsers, one per stack
node tests/browser/media.mjs    # re-records the screenshots and video in docs/media

Released under the MIT License.