Files
TREK/server/scripts/test-sql-baseline.json
T
Maurice 9561a2efc7 test(server): lower the raw statement baseline to what the seeded specs hold
The specs seeded through the repositories in the commits before this one
no longer carry unmarked raw statements, so their entries leave the
baseline. What stays raw in them is marked with a reason.
2026-10-08 18:46:47 +02:00

242 lines
14 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/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/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/addons.e2e.test.ts": 10,
"tests/e2e/admin.e2e.test.ts": 7,
"tests/e2e/assignments.e2e.test.ts": 54,
"tests/e2e/categories.e2e.test.ts": 3,
"tests/e2e/collections.e2e.test.ts": 10,
"tests/e2e/dawarich.e2e.test.ts": 14,
"tests/e2e/doc-sync.e2e.test.ts": 11,
"tests/e2e/feeds.e2e.test.ts": 2,
"tests/e2e/google-quota.e2e.test.ts": 3,
"tests/e2e/harness.ts": 1,
"tests/e2e/notifications.e2e.test.ts": 4,
"tests/e2e/packing.e2e.test.ts": 24,
"tests/e2e/place-shadow.e2e.test.ts": 6,
"tests/e2e/places.e2e.test.ts": 48,
"tests/e2e/plugin-search.e2e.test.ts": 1,
"tests/e2e/public-api.e2e.test.ts": 28,
"tests/e2e/receipt-scan.e2e.test.ts": 9,
"tests/e2e/reservations.e2e.test.ts": 36,
"tests/e2e/roadtrip.e2e.test.ts": 20,
"tests/e2e/school-holidays.e2e.test.ts": 4,
"tests/e2e/share.e2e.test.ts": 5,
"tests/e2e/storage-admin.e2e.test.ts": 7,
"tests/e2e/todo.e2e.test.ts": 8,
"tests/e2e/transit-provider.e2e.test.ts": 9,
"tests/e2e/trip-invite.e2e.test.ts": 6,
"tests/e2e/trips.e2e.test.ts": 23,
"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/airtrail-sync-request-context.test.ts": 2,
"tests/integration/assignments.test.ts": 5,
"tests/integration/auth.test.ts": 75,
"tests/integration/budget.test.ts": 10,
"tests/integration/collections.test.ts": 3,
"tests/integration/dayReorder.test.ts": 5,
"tests/integration/files.test.ts": 2,
"tests/integration/immich.test.ts": 22,
"tests/integration/journey-place-order.test.ts": 6,
"tests/integration/journey.test.ts": 5,
"tests/integration/leg-mode-incoming.test.ts": 4,
"tests/integration/memories-immich.test.ts": 11,
"tests/integration/memories-synology.test.ts": 25,
"tests/integration/oauth-authorize.test.ts": 1,
"tests/integration/oauth.test.ts": 2,
"tests/integration/packing.test.ts": 5,
"tests/integration/passkey.test.ts": 4,
"tests/integration/places.test.ts": 32,
"tests/integration/plugins/boot-registry-order.test.ts": 5,
"tests/integration/plugins/dev-link.test.ts": 2,
"tests/integration/plugins/plugin-runtime.test.ts": 67,
"tests/integration/profile.test.ts": 3,
"tests/integration/reservations.test.ts": 22,
"tests/integration/share.test.ts": 17,
"tests/integration/storage-restore-reload.test.ts": 2,
"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/unit/db/booked-night-reseat.test.ts": 11,
"tests/unit/db/durability.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/place-regions-follow-place.test.ts": 15,
"tests/unit/db/repositories/_shared/collection-role.parity.test.ts": 2,
"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-visibility.test.ts": 37,
"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/BudgetItems.repository.test.ts": 5,
"tests/unit/db/repositories/DawarichConnections.repository.test.ts": 4,
"tests/unit/db/repositories/DayAccommodations.repository.test.ts": 12,
"tests/unit/db/repositories/DayAssignments.repository.test.ts": 60,
"tests/unit/db/repositories/DayNotes.repository.test.ts": 10,
"tests/unit/db/repositories/Days.repository.test.ts": 9,
"tests/unit/db/repositories/DemoRepository.test.ts": 21,
"tests/unit/db/repositories/DocumentProviders.repository.test.ts": 3,
"tests/unit/db/repositories/DocumentSyncItems.repository.test.ts": 14,
"tests/unit/db/repositories/GooglePlacePhotoMeta.repository.test.ts": 12,
"tests/unit/db/repositories/HiddenRegions.repository.test.ts": 4,
"tests/unit/db/repositories/IdempotencyKeys.repository.test.ts": 9,
"tests/unit/db/repositories/identity-map-writeback.test.ts": 3,
"tests/unit/db/repositories/InviteTokens.repository.test.ts": 5,
"tests/unit/db/repositories/McpTokens.repository.test.ts": 11,
"tests/unit/db/repositories/Notifications.repository.test.ts": 23,
"tests/unit/db/repositories/PasswordResetTokens.repository.test.ts": 4,
"tests/unit/db/repositories/PhotoProviders.repository.test.ts": 4,
"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/ReservationTravelers.repository.test.ts": 7,
"tests/unit/db/repositories/RoadtripDayTracks.repository.test.ts": 1,
"tests/unit/db/repositories/Settings.repository.test.ts": 8,
"tests/unit/db/repositories/ShareTokens.repository.test.ts": 10,
"tests/unit/db/repositories/Tags.repository.test.ts": 13,
"tests/unit/db/repositories/TodoItems.repository.test.ts": 3,
"tests/unit/db/repositories/Tours.repository.test.ts": 2,
"tests/unit/db/repositories/TripMembers.repository.test.ts": 34,
"tests/unit/db/repositories/UserNoticeDismissals.repository.test.ts": 9,
"tests/unit/db/repositories/Users.repository.test.ts": 109,
"tests/unit/db/repositories/vacay-branch-coverage.test.ts": 10,
"tests/unit/db/repositories/VacayCompanyHolidays.repository.test.ts": 5,
"tests/unit/db/repositories/VacayHolidayCalendars.repository.test.ts": 4,
"tests/unit/db/repositories/VacayPlanMembers.repository.test.ts": 6,
"tests/unit/db/repositories/VacayShares.repository.test.ts": 11,
"tests/unit/db/repositories/VacayUserSettings.repository.test.ts": 4,
"tests/unit/db/repositories/VacayUserYears.repository.test.ts": 5,
"tests/unit/db/repositories/VisitedCountries.repository.test.ts": 7,
"tests/unit/db/repositories/WebauthnChallenges.repository.test.ts": 5,
"tests/unit/db/seeds-admin.test.ts": 6,
"tests/unit/db/transaction-yield.test.ts": 8,
"tests/unit/demo/demo-seed.test.ts": 6,
"tests/unit/helpers/test-uow.test.ts": 1,
"tests/unit/mcp/tools-airtrail.test.ts": 2,
"tests/unit/mcp/tools-assignments-reservations-extra.test.ts": 2,
"tests/unit/mcp/tools-assignments.test.ts": 21,
"tests/unit/mcp/tools-atlas.test.ts": 5,
"tests/unit/mcp/tools-categories.test.ts": 19,
"tests/unit/mcp/tools-collections.test.ts": 16,
"tests/unit/mcp/tools-days-accommodations.test.ts": 20,
"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-memories.test.ts": 6,
"tests/unit/mcp/tools-notifications.test.ts": 7,
"tests/unit/mcp/tools-packing-advanced.test.ts": 17,
"tests/unit/mcp/tools-packing.test.ts": 24,
"tests/unit/mcp/tools-places.test.ts": 34,
"tests/unit/mcp/tools-prompts.test.ts": 6,
"tests/unit/mcp/tools-reservations.test.ts": 16,
"tests/unit/mcp/tools-roadtrip.test.ts": 8,
"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-transit.test.ts": 11,
"tests/unit/mcp/tools-transports.test.ts": 22,
"tests/unit/mcp/tools-trip-members.test.ts": 32,
"tests/unit/mcp/tools-trips.test.ts": 49,
"tests/unit/mcp/tools-vacay.test.ts": 18,
"tests/unit/nest/accommodations.service.test.ts": 68,
"tests/unit/nest/addons.service.test.ts": 12,
"tests/unit/nest/admin.service.test.ts": 30,
"tests/unit/nest/admin.version-notification.test.ts": 5,
"tests/unit/nest/airtrail.service.test.ts": 1,
"tests/unit/nest/atlas.service.test.ts": 46,
"tests/unit/nest/auth.service.test.ts": 73,
"tests/unit/nest/boot-restore.test.ts": 2,
"tests/unit/nest/budget.service.calc.test.ts": 11,
"tests/unit/nest/calendar.service.test.ts": 88,
"tests/unit/nest/channel-override.test.ts": 1,
"tests/unit/nest/collab.service.test.ts": 35,
"tests/unit/nest/collections.service.test.ts": 62,
"tests/unit/nest/database/unit-of-work.test.ts": 1,
"tests/unit/nest/dawarich-sync.service.test.ts": 27,
"tests/unit/nest/day-notes.service.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/idempotency.interceptor.test.ts": 2,
"tests/unit/nest/journey-stats.service.test.ts": 7,
"tests/unit/nest/mailer.service.test.ts": 1,
"tests/unit/nest/mcp-shared.service.test.ts": 6,
"tests/unit/nest/memories-access.service.test.ts": 42,
"tests/unit/nest/notification-transports.test.ts": 3,
"tests/unit/nest/notifications.inapp-prefs.test.ts": 17,
"tests/unit/nest/notifications.service.test.ts": 45,
"tests/unit/nest/notifications/push-subscriptions.service.test.ts": 4,
"tests/unit/nest/notifications/web-push.service.test.ts": 7,
"tests/unit/nest/oauth.service.test.ts": 6,
"tests/unit/nest/passkey.service.test.ts": 18,
"tests/unit/nest/permissions.service.test.ts": 12,
"tests/unit/nest/place-enrichment.service.test.ts": 1,
"tests/unit/nest/place-photos/place-photo-cache.service.test.ts": 14,
"tests/unit/nest/place-regions-repair.test.ts": 7,
"tests/unit/nest/place-shadow.service.test.ts": 9,
"tests/unit/nest/places.service.test.ts": 98,
"tests/unit/nest/platform.controller.test.ts": 3,
"tests/unit/nest/query-helpers.service.test.ts": 4,
"tests/unit/nest/registration-invites.service.test.ts": 4,
"tests/unit/nest/reservations.service.test.ts": 135,
"tests/unit/nest/roadtrip-plan.service.test.ts": 30,
"tests/unit/nest/settings.service.test.ts": 26,
"tests/unit/nest/settings/instance-api-keys.test.ts": 8,
"tests/unit/nest/storage/storage-jobs.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/token.service.test.ts": 12,
"tests/unit/nest/tours.gpx.atomic.test.ts": 8,
"tests/unit/nest/travel-stats.service.test.ts": 6,
"tests/unit/nest/trek-photo-cache.service.test.ts": 13,
"tests/unit/nest/trip-invite.service.test.ts": 3,
"tests/unit/nest/trip-read-model.service.test.ts": 10,
"tests/unit/nest/trips.service.test.ts": 208,
"tests/unit/nest/unified-memories.service.test.ts": 29,
"tests/unit/nest/user-cleanup.service.test.ts": 48,
"tests/unit/nest/vacay.service.test.ts": 93,
"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-audit.test.ts": 11,
"tests/unit/plugins/plugin-guards.test.ts": 2,
"tests/unit/plugins/plugin-host-state.test.ts": 1,
"tests/unit/plugins/plugin-instance-settings.test.ts": 17,
"tests/unit/plugins/plugin-oauth.service.test.ts": 13,
"tests/unit/plugins/plugin-pois.test.ts": 4,
"tests/unit/plugins/plugin-route-normalize.test.ts": 2,
"tests/unit/plugins/plugin-routes.controller.test.ts": 1,
"tests/unit/plugins/plugin-user-settings.test.ts": 4,
"tests/unit/plugins/plugins-service.test.ts": 29,
"tests/unit/plugins/request-context.test.ts": 1,
"tests/unit/plugins/rpc-fallbacks.test.ts": 1,
"tests/unit/plugins/settings-isolation.test.ts": 9,
"tests/unit/services/trekPhotoMedia.test.ts": 2,
"tests/unit/trips/trips.rpc.test.ts": 1,
"tests/websocket/connection.test.ts": 7
}
}