Skip to content

Add checks to bypass in test / without a driver? #346

@fruitl00p

Description

@fruitl00p
  • Laravel version: 11
  • Algolia Scout Extended version: latest
  • Algolia Client Version: n/a
  • Language Version: 8.3

Description

Currently this extends scout with specific Algolia features (such as reimport). However by (temporarily) disbaling Algolia (i.e. in testing / local environment) via the SCOUT_DRIVER (null/ empty) the extended commands throw errors / still try to connect to Aloglia. Is it possible to add the correct checks to make sure that the commands still check the correct settings / config?

Steps To Reproduce

empty out the SCOUT_DRIVER env variable
run php artisan scout:status
run php artisan scout:reimport

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions