From 8aad5028ab4690350d01baaaf08e6c5867c2f7bd Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 19 Oct 2024 13:49:20 -0400 Subject: [PATCH] Remove orphans --- api/data/subscription.test.ts | 7 ++++++- package.json | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/api/data/subscription.test.ts b/api/data/subscription.test.ts index 7b6be8b..20fef80 100644 --- a/api/data/subscription.test.ts +++ b/api/data/subscription.test.ts @@ -50,7 +50,12 @@ describe("subscriptions", () => { }) beforeEach(async () => { - await migrateToLatest() + try { + await migrateToLatest() + } catch (error) { + console.log("Something has exploded in migration") + fail(error) + } }) // afterEach(async () => { diff --git a/package.json b/package.json index 6a9f1e9..8abe6fd 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .", "start": "remix-serve ./build/server/index.js", "typecheck": "tsc", - "watch": "export $(cat .env.test | xargs) && docker compose -f docker-compose-test.yaml up database -d && jest --watch --config=jest.config.ts", - "test": "export $(cat .env.test | xargs) && docker compose -f docker-compose-test.yaml up database -d && jest --config=jest.config.ts" + "watch": "export $(cat .env.test | xargs) && docker compose -f docker-compose-test.yaml up database -d --remove-orphans && jest --watch --config=jest.config.ts", + "test": "export $(cat .env.test | xargs) && docker compose -f docker-compose-test.yaml up database -d --remove-orphans && jest --config=jest.config.ts" }, "dependencies": { "@remix-pwa/sw": "^3.0.9",