From c3dc3c89b57af6d312af6b971dce735f937cf6c7 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Fri, 19 Jan 2024 16:42:00 +1300 Subject: [PATCH] Code coverage for migrate.js --- db/migrate.js | 1 + db/migrations/.baby | 0 2 files changed, 1 insertion(+) create mode 100644 db/migrations/.baby diff --git a/db/migrate.js b/db/migrate.js index 7c1faf9..57b5cbf 100644 --- a/db/migrate.js +++ b/db/migrate.js @@ -16,6 +16,7 @@ async function migrate(db) { let migrationRan = false for (const filename of files) { + /* c8 ignore next - we can't unit test this, but it's run on every real world bridge startup */ if (progress >= filename) continue console.log(`Applying database migration ${filename}`) if (filename.endsWith(".sql")) { diff --git a/db/migrations/.baby b/db/migrations/.baby new file mode 100644 index 0000000..e69de29