Files
TREK/server/scripts/test-sql-baseline.json
T
Maurice f5b29ddb50 test(server): lower the raw test SQL baseline to what the specs hold now
The seeding rounds above took the converted specs down to few or no
raw statements, so their entries in the ratchet drop to the new counts,
and the files that reached zero leave the baseline. A file that is
converted can no longer grow its raw SQL back unnoticed.

Two specs move to the exemptions instead, because raw SQL is their
subject: the migration step that reseats booked nights is tested on rows
seeded over the raw connection before the step runs, and the place
region trigger is pinned by raw updates on databases the migrations
alone built.
2026-10-08 18:46:06 +02:00

252 lines
15 KiB
JSON

{
"exempt": {
"tests/helpers/legacy-fixture.ts": "Loads and fingerprints the legacy SQL fixtures, databases the retired positional runner built before any ORM schema existed.",
"tests/helpers/legacy-upgrade-suite.ts": "Reads legacy databases before and after the legacy baseline adopts them; the bookkeeping tables it checks (schema_version, mikro_orm_migrations) are the subject.",
"tests/integration/legacy-upgrade-v244.test.ts": "Compares a v4.3.3 database column by column before and after the upgrade, through pragma_table_info, on a copy no ORM is bound to.",
"tests/unit/db/booked-night-reseat.test.ts": "Tests migration step 242, which reseats booked nights over the raw connection; the rows it seeds are the ones the step transforms before any repository runs.",
"tests/unit/db/dialect/sql-functions.test.ts": "Pins the SQL text and the engine result of every dialect function in src/db/dialect/sql-functions.ts; the raw statement is what is under test.",
"tests/unit/db/entity-schema-parity.test.ts": "Compares PRAGMA table_info, foreign_key_list and index_list of the migrated schema against the entity metadata.",
"tests/unit/db/foreign-key-indexes.test.ts": "Reads PRAGMA foreign_key_list, index_list and index_info and EXPLAIN QUERY PLAN to prove every foreign key is indexed.",
"tests/unit/db/migrate-encryption-parity.test.ts": "Seeds and reads a bare database for scripts/migrate-encryption.ts, which runs on the raw handle without the ORM.",
"tests/unit/db/nul-safe-sqlite-platform.test.ts": "Pins how the SQLite driver binds and returns the literals the platform has to escape (NUL, NaN, infinities).",
"tests/unit/db/place-regions-follow-place.test.ts": "Pins the place_regions trigger the migrations install, by raw UPDATEs on places and on databases built by the migrations alone.",
"tests/unit/db/pre-migrate-snapshot.test.ts": "Inspects the VACUUM INTO copy written before the migrator runs, a file no ORM is bound to.",
"tests/unit/db/restore-migrates-forward.test.ts": "Probes a restored database file before any ORM boots on it.",
"tests/unit/db/test-orm.test.ts": "Proves the test ORM shares the raw handle it was given; the raw statements are the subject."
},
"counts": {
"tests/e2e/atlas.e2e.test.ts": 14,
"tests/e2e/auth.e2e.test.ts": 10,
"tests/e2e/booking-import.e2e.test.ts": 3,
"tests/e2e/budget.e2e.test.ts": 27,
"tests/e2e/collab.e2e.test.ts": 26,
"tests/e2e/collections.e2e.test.ts": 10,
"tests/e2e/dawarich.e2e.test.ts": 14,
"tests/e2e/days.e2e.test.ts": 42,
"tests/e2e/files.e2e.test.ts": 6,
"tests/e2e/google-quota.e2e.test.ts": 3,
"tests/e2e/harness.ts": 1,
"tests/e2e/mailer.e2e.test.ts": 1,
"tests/e2e/notifications.e2e.test.ts": 4,
"tests/e2e/packing.e2e.test.ts": 24,
"tests/e2e/place-enrichment.e2e.test.ts": 3,
"tests/e2e/place-shadow.e2e.test.ts": 6,
"tests/e2e/plugin-pois.e2e.test.ts": 2,
"tests/e2e/push.e2e.test.ts": 7,
"tests/e2e/receipt-scan.e2e.test.ts": 9,
"tests/e2e/roadtrip.e2e.test.ts": 20,
"tests/e2e/settings.e2e.test.ts": 11,
"tests/e2e/share.e2e.test.ts": 5,
"tests/e2e/storage-admin.e2e.test.ts": 7,
"tests/e2e/tours.e2e.test.ts": 34,
"tests/e2e/vacay.e2e.test.ts": 2,
"tests/helpers/db-mock.ts": 4,
"tests/helpers/factories.ts": 62,
"tests/helpers/test-db.ts": 5,
"tests/helpers/tours-repos.ts": 1,
"tests/integration/admin.test.ts": 62,
"tests/integration/async-closure-truthiness-guards.test.ts": 1,
"tests/integration/atlas-geocode-request-context.test.ts": 3,
"tests/integration/atlas.test.ts": 5,
"tests/integration/collections.test.ts": 3,
"tests/integration/dayReorder.test.ts": 5,
"tests/integration/days.test.ts": 46,
"tests/integration/doc-sync-webhook-request-context.test.ts": 2,
"tests/integration/feeds-request-context.test.ts": 3,
"tests/integration/files.test.ts": 2,
"tests/integration/immich.test.ts": 22,
"tests/integration/leg-mode-incoming.test.ts": 4,
"tests/integration/mcp.test.ts": 28,
"tests/integration/memories-immich.test.ts": 11,
"tests/integration/memories-synology.test.ts": 25,
"tests/integration/memories-unified.test.ts": 10,
"tests/integration/notifications.test.ts": 8,
"tests/integration/oidc.test.ts": 5,
"tests/integration/orm-request-context-seams.test.ts": 2,
"tests/integration/packing.test.ts": 5,
"tests/integration/places.test.ts": 32,
"tests/integration/plugins/dev-link.test.ts": 2,
"tests/integration/plugins/plugin-runtime.task2-conversion.test.ts": 23,
"tests/integration/plugins/plugin-runtime.test.ts": 67,
"tests/integration/plugins/plugin-scheduler-sweep.test.ts": 9,
"tests/integration/plugins/registry.test.ts": 18,
"tests/integration/security.test.ts": 5,
"tests/integration/share.test.ts": 17,
"tests/integration/systemNotices.test.ts": 23,
"tests/integration/todo.test.ts": 1,
"tests/integration/trip-access-primitives.test.ts": 5,
"tests/integration/trips.test.ts": 59,
"tests/integration/uploads-photo-request-context.test.ts": 3,
"tests/integration/vacay.test.ts": 2,
"tests/unit/db/connection.test.ts": 3,
"tests/unit/db/entities/primary-relations.spike.test.ts": 3,
"tests/unit/db/entity-class-fields.test.ts": 2,
"tests/unit/db/repositories/_shared/atlas-travowns-consumers.parity.test.ts": 8,
"tests/unit/db/repositories/_shared/owned-lookup.test.ts": 1,
"tests/unit/db/repositories/_shared/packing-visibility.parity.test.ts": 8,
"tests/unit/db/repositories/_shared/reservation-travelers-owns.parity.test.ts": 2,
"tests/unit/db/repositories/_shared/reservation-visibility.test.ts": 37,
"tests/unit/db/repositories/addons-config-encryption.test.ts": 1,
"tests/unit/db/repositories/Addons.repository.test.ts": 5,
"tests/unit/db/repositories/AppSettings.repository.test.ts": 6,
"tests/unit/db/repositories/AssignmentParticipants.repository.test.ts": 6,
"tests/unit/db/repositories/AuditLog.repository.test.ts": 10,
"tests/unit/db/repositories/bucket-list-duplicate.parity.test.ts": 2,
"tests/unit/db/repositories/BucketList.repository.test.ts": 12,
"tests/unit/db/repositories/BudgetItems.repository.test.ts": 5,
"tests/unit/db/repositories/Categories.repository.test.ts": 4,
"tests/unit/db/repositories/CollabMessages.repository.test.ts": 3,
"tests/unit/db/repositories/DawarichConnections.repository.test.ts": 4,
"tests/unit/db/repositories/DawarichVisitSuggestions.repository.test.ts": 11,
"tests/unit/db/repositories/DayAccommodations.repository.test.ts": 12,
"tests/unit/db/repositories/Days.repository.test.ts": 9,
"tests/unit/db/repositories/DemoRepository.test.ts": 21,
"tests/unit/db/repositories/MaintenanceRepository.test.ts": 4,
"tests/unit/db/repositories/McpTokens.repository.test.ts": 11,
"tests/unit/db/repositories/NotificationChannelPreferences.repository.test.ts": 10,
"tests/unit/db/repositories/OauthClients.repository.test.ts": 7,
"tests/unit/db/repositories/OauthConsents.repository.test.ts": 9,
"tests/unit/db/repositories/OauthTokens.repository.test.ts": 31,
"tests/unit/db/repositories/PackingItems.repository.test.ts": 8,
"tests/unit/db/repositories/PasswordResetTokens.repository.test.ts": 4,
"tests/unit/db/repositories/PhotoProviderFields.repository.test.ts": 2,
"tests/unit/db/repositories/PlaceDetailsCache.repository.test.ts": 8,
"tests/unit/db/repositories/PlaceRatings.repository.test.ts": 9,
"tests/unit/db/repositories/PlaceRegions.repository.test.ts": 7,
"tests/unit/db/repositories/Places.repository.test.ts": 94,
"tests/unit/db/repositories/PlaceShadowPicks.repository.test.ts": 12,
"tests/unit/db/repositories/PluginOauthTokens.repository.test.ts": 1,
"tests/unit/db/repositories/ReservationDayPositions.repository.test.ts": 4,
"tests/unit/db/repositories/ReservationEndpoints.repository.test.ts": 5,
"tests/unit/db/repositories/Reservations.repository.test.ts": 76,
"tests/unit/db/repositories/ShareTokens.repository.test.ts": 10,
"tests/unit/db/repositories/TodoItems.repository.test.ts": 3,
"tests/unit/db/repositories/Tours.repository.test.ts": 2,
"tests/unit/db/repositories/trek-repository.test.ts": 4,
"tests/unit/db/repositories/TripInviteTokens.repository.test.ts": 7,
"tests/unit/db/repositories/TripMembers.repository.test.ts": 34,
"tests/unit/db/repositories/Trips.repository.test.ts": 71,
"tests/unit/db/repositories/Users.repository.test.ts": 109,
"tests/unit/db/repositories/VacayCompanyHolidays.repository.test.ts": 5,
"tests/unit/db/repositories/VacayHolidayCalendars.repository.test.ts": 4,
"tests/unit/db/repositories/VacayPlans.repository.test.ts": 3,
"tests/unit/db/repositories/VacayYears.repository.test.ts": 5,
"tests/unit/db/repositories/VisitedCountries.repository.test.ts": 7,
"tests/unit/db/repositories/VisitedRegions.repository.test.ts": 9,
"tests/unit/db/repositories/WebauthnChallenges.repository.test.ts": 5,
"tests/unit/db/repositories/WebauthnCredentials.repository.test.ts": 6,
"tests/unit/db/seeds-admin.test.ts": 6,
"tests/unit/db/trip-access.test.ts": 8,
"tests/unit/idempotency-cleanup.test.ts": 6,
"tests/unit/mcp/tools-airtrail.test.ts": 2,
"tests/unit/mcp/tools-atlas-expanded.test.ts": 21,
"tests/unit/mcp/tools-budget-advanced.test.ts": 13,
"tests/unit/mcp/tools-budget.test.ts": 30,
"tests/unit/mcp/tools-collab-polls-chat.test.ts": 11,
"tests/unit/mcp/tools-collections.test.ts": 16,
"tests/unit/mcp/tools-days.test.ts": 8,
"tests/unit/mcp/tools-feeds-invite.test.ts": 12,
"tests/unit/mcp/tools-files.test.ts": 18,
"tests/unit/mcp/tools-help-addons.test.ts": 4,
"tests/unit/mcp/tools-journey.test.ts": 3,
"tests/unit/mcp/tools-leg-transport-mode.test.ts": 5,
"tests/unit/mcp/tools-memories.test.ts": 6,
"tests/unit/mcp/tools-notes.test.ts": 22,
"tests/unit/mcp/tools-plugin-pois.test.ts": 2,
"tests/unit/mcp/tools-settings.test.ts": 5,
"tests/unit/mcp/tools-share.test.ts": 2,
"tests/unit/mcp/tools-tags-maps-weather.test.ts": 9,
"tests/unit/mcp/tools-todos.test.ts": 7,
"tests/unit/mcp/tools-transit.test.ts": 11,
"tests/unit/mcp/tools-transports.test.ts": 22,
"tests/unit/nest/admin.service.test.ts": 30,
"tests/unit/nest/airtrail.service.test.ts": 1,
"tests/unit/nest/assignments.service.test.ts": 36,
"tests/unit/nest/atlas.service.test.ts": 46,
"tests/unit/nest/audit.service.test.ts": 6,
"tests/unit/nest/auth.service.test.ts": 73,
"tests/unit/nest/backup-archive-version.test.ts": 1,
"tests/unit/nest/budget.service.db.test.ts": 108,
"tests/unit/nest/budget.service.test.ts": 3,
"tests/unit/nest/calendar.service.test.ts": 88,
"tests/unit/nest/collab.service.test.ts": 35,
"tests/unit/nest/database/unit-of-work.test.ts": 1,
"tests/unit/nest/dawarich-suggestions.service.test.ts": 17,
"tests/unit/nest/dawarich-sync.service.test.ts": 27,
"tests/unit/nest/dawarich.service.test.ts": 2,
"tests/unit/nest/day-boundaries.test.ts": 1,
"tests/unit/nest/day-removal.service.test.ts": 24,
"tests/unit/nest/days.service.test.ts": 66,
"tests/unit/nest/doc-sync/doc-sync-config.service.test.ts": 23,
"tests/unit/nest/doc-sync/doc-sync.controller.test.ts": 18,
"tests/unit/nest/doc-sync/doc-sync.job.test.ts": 4,
"tests/unit/nest/doc-sync/doc-sync.service.test.ts": 50,
"tests/unit/nest/feeds.service.test.ts": 4,
"tests/unit/nest/files.service.test.ts": 26,
"tests/unit/nest/google-quota.service.test.ts": 7,
"tests/unit/nest/google-route.test.ts": 2,
"tests/unit/nest/immich.service.test.ts": 5,
"tests/unit/nest/journey-book.service.test.ts": 8,
"tests/unit/nest/journey-domain.service.test.ts": 173,
"tests/unit/nest/journey-share.service.test.ts": 34,
"tests/unit/nest/mcp-shared.service.test.ts": 6,
"tests/unit/nest/memories-access.service.test.ts": 42,
"tests/unit/nest/notification-preferences.service.test.ts": 12,
"tests/unit/nest/notifications.inapp-prefs.test.ts": 17,
"tests/unit/nest/notifications/vapid-keys.service.test.ts": 14,
"tests/unit/nest/notifications/web-push-dispatch.test.ts": 7,
"tests/unit/nest/notifications/web-push.service.test.ts": 7,
"tests/unit/nest/oidc.service.test.ts": 48,
"tests/unit/nest/packing.service.test.ts": 56,
"tests/unit/nest/passkey.service.test.ts": 18,
"tests/unit/nest/permissions.service.test.ts": 12,
"tests/unit/nest/photo-resolver.service.test.ts": 4,
"tests/unit/nest/place-enrichment.service.test.ts": 1,
"tests/unit/nest/place-photos/place-photo-cache.service.test.ts": 14,
"tests/unit/nest/places.directions.test.ts": 1,
"tests/unit/nest/places.service.test.ts": 98,
"tests/unit/nest/platform.controller.test.ts": 3,
"tests/unit/nest/public-api-scopes.test.ts": 6,
"tests/unit/nest/query-helpers.service.test.ts": 4,
"tests/unit/nest/reminder-jobs.service.test.ts": 15,
"tests/unit/nest/reservations.service.test.ts": 135,
"tests/unit/nest/roadtrip.service.test.ts": 2,
"tests/unit/nest/route-usage.service.test.ts": 10,
"tests/unit/nest/school-holidays.service.test.ts": 11,
"tests/unit/nest/settings/instance-api-keys.test.ts": 8,
"tests/unit/nest/share.service.test.ts": 49,
"tests/unit/nest/storage/storage-admin.service.test.ts": 3,
"tests/unit/nest/storage/storage-registry.service.test.ts": 11,
"tests/unit/nest/storage/storage-stats.service.test.ts": 3,
"tests/unit/nest/synology.service.test.ts": 4,
"tests/unit/nest/thumbnail.service.test.ts": 3,
"tests/unit/nest/todo.service.test.ts": 7,
"tests/unit/nest/tours.service.test.ts": 12,
"tests/unit/nest/travel-stats.service.test.ts": 6,
"tests/unit/nest/trek-photo-cache.service.test.ts": 13,
"tests/unit/nest/trek-photo-registration.service.test.ts": 9,
"tests/unit/nest/trip-members.service.test.ts": 19,
"tests/unit/nest/trip-membership/trip-membership.service.test.ts": 8,
"tests/unit/nest/trip-read-model.service.test.ts": 10,
"tests/unit/nest/unified-memories.service.test.ts": 29,
"tests/unit/nest/user-cleanup.service.test.ts": 48,
"tests/unit/nest/user-profile.service.test.ts": 16,
"tests/unit/plugins/discovery.test.ts": 12,
"tests/unit/plugins/host-rpc.test.ts": 38,
"tests/unit/plugins/operator-egress.test.ts": 5,
"tests/unit/plugins/plugin-guards.test.ts": 2,
"tests/unit/plugins/plugin-pois.test.ts": 4,
"tests/unit/plugins/plugin-repository-sql-parity.test.ts": 20,
"tests/unit/plugins/plugin-routes.controller.test.ts": 1,
"tests/unit/plugins/plugin-runtime.boot-no-orm.test.ts": 1,
"tests/unit/plugins/rpc-fallbacks.test.ts": 1,
"tests/unit/plugins/rpc-host-inv-strip.test.ts": 1,
"tests/unit/plugins/settings-isolation.test.ts": 9,
"tests/unit/services/airtrailImport.test.ts": 4,
"tests/unit/services/conflictUpdate.test.ts": 3,
"tests/unit/services/trekPhotoMedia.test.ts": 2,
"tests/unit/trips/trips.rpc.test.ts": 1,
"tests/websocket/connection.test.ts": 7
}
}