openculinary / frontend

The RecipeRadar Frontend is a recipe search and meal planning application
GNU Affero General Public License v3.0
13 stars 2 forks source link

Restore ability to run unit tests #234

Closed jayaddison closed 1 year ago

jayaddison commented 1 year ago

Describe the reason for these changes and the problem that they solve

Briefly summarize the changes

  1. Revert 9a0848597a1f701e12f6516e4d86adc5085b1efd, moving the import of bootstrap-table.
    • bootstrap-table added a "type": "module" declaration in package.json in version 1.21.3 -- this appears to have conflicted with the ability to run unit tests here.
  2. Since the revert affects uncovers a timing issue related to display of an empty search recipe list on the homepage (it reopens #230), also add a conditional before we call JQuery's show method on the recipe results.

How have the changes been tested?

  1. Local development testing.

List any issues that this change relates to Fixes #233.