jj15 liked a comment+100 XP
1w ago
Livewire test macro not loading on GitHub Actions
Looks like assertSeeLivewire is only registered when APP_ENV=testing. The fix was adding the correct env to my test step.
- name: Run Tests
run: php vendor/bin/pest \
--configuration phpunit.xml \
--testdox \
--coverage-text \
--display-errors \
--coverage-filter=app \
--colors=never
env:
DB_PORT: 5432
REDIS_PORT: 6379
APP_ENV: testing