Skip to content

Remove /geo-watch route left behind by demo prune - #15

Open
RaphaelFakhri wants to merge 1 commit into
NativePHP:mainfrom
RaphaelFakhri:fix/remove-geo-watch-route
Open

RaphaelFakhri wants to merge 1 commit into
NativePHP:mainfrom
RaphaelFakhri:fix/remove-geo-watch-route

Conversation

@RaphaelFakhri

Copy link
Copy Markdown

Summary

PR #9 pruned the geo watch demo and deleted App\NativeComponents\GeoWatchDemo and its view, but routes/mobile.php still imports the class and registers /geo-watch. Opening that route, for example through a deep link or Native::visit('/geo-watch'), throws Class "App\NativeComponents\GeoWatchDemo" not found.

Changes

  • Remove the GeoWatchDemo import and the /geo-watch route from routes/mobile.php.
  • Add tests/Feature/Native/NativeRoutesTest.php, which checks that every route in NativeRouter::registeredRoutes() points at an existing component class, so a future prune that leaves a route behind fails CI.

Testing

  • ./vendor/bin/pest tests/Feature/Native/NativeRoutesTest.php fails on main (reports '/geo-watch' => 'App\NativeComponents\GeoWatchDemo') and passes with this change.
  • ./vendor/bin/pest: 170 passed.
  • ./vendor/bin/pint --test: clean.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant