Skip to content

Commit

Permalink
fix: testing script
Browse files Browse the repository at this point in the history
  • Loading branch information
realashleybailey committed Nov 7, 2023
1 parent f875761 commit a5c3c19
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 36 deletions.
7 changes: 7 additions & 0 deletions apps/wizarr-backend/wizarr_backend/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
environment=app.debug and "development" or "production",
)

# Base route for testing
@app.route("/")
def server_online():
return {
"status": "online"
}, 200

# Run migrations
run_migrations()

Expand Down
39 changes: 5 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"start": "nx run-many --parallel --target=serve --projects=wizarr-frontend,wizarr-backend",
"start:frontend": "nx run wizarr-frontend:serve",
"start:backend": "nx run wizarr-backend:serve",
"test": "npm run start:backend & wait-on http://127.0.0.1:5000/api/health && npm run test:e2e",
"test": "start-server-and-test start:backend 5000 test:e2e",
"test:e2e": "nx e2e wizarr-e2e",
"prepare": "husky install"
},
Expand Down Expand Up @@ -149,7 +149,7 @@
"prettier": "3.0.2",
"sass": "^1.66.1",
"semantic-release": "^22.0.7",
"start-server-and-test": "^2.0.0",
"start-server-and-test": "^2.0.2",
"tailwind-scrollbar": "^3.0.5",
"tailwindcss": "^3.3.3",
"tailwindcss-inner-border": "^0.2.0",
Expand Down

0 comments on commit a5c3c19

Please sign in to comment.