\u001b[39m\n\u001b[36m\u001b[39m\n at Object.getElementError (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/config.js:37:19)\n at getElementError (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/query-helpers.js:20:35)\n at getMultipleElementsFoundError (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/query-helpers.js:23:10)\n at /Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/query-helpers.js:55:13\n at /Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/query-helpers.js:95:19\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/__tests__/components/CommunityStationCard.test.tsx:66:19)\n at Promise.then.completed (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:104:5)\n at _runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/testWorker.js:106:12)",
- "name": "TestingLibraryElementError"
- }
- ]
- },
- {
- "name": "should show approve and reject buttons for admin",
- "fullName": "CommunityStationCard should show approve and reject buttons for admin",
- "state": "passed"
- },
- {
- "name": "should call onWithdraw when withdraw button is clicked",
- "fullName": "CommunityStationCard should call onWithdraw when withdraw button is clicked",
- "state": "failed",
- "errors": [
- {
- "message": "TestingLibraryElementError: Found multiple elements with the role \"button\"\n\nHere are the matching elements:\n\nIgnored nodes: comments, script, style\n\u001b[36m\u001b[39m\n\nIgnored nodes: comments, script, style\n\u001b[36m\u001b[39m\n\nIgnored nodes: comments, script, style\n\u001b[36m\u001b[39m\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).\n\nIgnored nodes: comments, script, style\n\u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n\u001b[36m\u001b[39m\n at Object.getElementError (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/config.js:37:19)\n at /Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/query-helpers.js:76:38\n at /Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/query-helpers.js:52:17\n at /Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/query-helpers.js:95:19\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/admin/__tests__/components/BulkActionDialog.test.tsx:55:34)\n at Promise.then.completed (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:104:5)\n at _runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/testWorker.js:106:12)",
- "name": "TestingLibraryElementError"
- }
- ]
- },
- {
- "name": "should show loading spinner when loading",
- "fullName": "BulkActionDialog should show loading spinner when loading",
- "state": "failed",
- "errors": [
- {
- "message": "Error: expect(received).toBeInTheDocument()\n\nreceived value must be an HTMLElement or an SVGElement.\nReceived has value: null\n at __EXTERNAL_MATCHER_TRAP__ (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/expect/build/index.js:325:30)\n at Object.throwingMatcher [as toBeInTheDocument] (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/expect/build/index.js:326:15)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/admin/__tests__/components/BulkActionDialog.test.tsx:67:66)\n at Promise.then.completed (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:104:5)\n at _runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/testWorker.js:106:12)"
- }
- ]
- },
- {
- "name": "should support custom button text",
- "fullName": "BulkActionDialog should support custom button text",
- "state": "passed"
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/admin/__tests__/useAdminAccess.test.tsx",
- "tests": [
- {
- "name": "should return loading state initially",
- "fullName": "useAdminAccess should return loading state initially",
- "state": "passed"
- },
- {
- "name": "should return isAdmin true when user is admin",
- "fullName": "useAdminAccess should return isAdmin true when user is admin",
- "state": "failed",
- "errors": [
- {
- "message": "Error: expect(received).toBeUndefined()\n\nReceived: null\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/admin/__tests__/useAdminAccess.test.tsx:76:34)"
- }
- ]
- },
- {
- "name": "should return isAdmin false when user is not admin",
- "fullName": "useAdminAccess should return isAdmin false when user is not admin",
- "state": "failed",
- "errors": [
- {
- "message": "Error: expect(received).toBeUndefined()\n\nReceived: null\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/admin/__tests__/useAdminAccess.test.tsx:98:34)"
- }
- ]
- },
- {
- "name": "should handle errors gracefully",
- "fullName": "useAdminAccess should handle errors gracefully",
- "state": "failed",
- "errors": [
- {
- "message": "Error: expect(received).toBe(expected) // Object.is equality\n\nExpected: false\nReceived: true\n\nIgnored nodes: comments, script, style\n\u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n\u001b[36m\u001b[39m\n at /Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/admin/__tests__/useAdminAccess.test.tsx:114:56\n at runWithExpensiveErrorDiagnosticsDisabled (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/config.js:47:12)\n at checkCallback (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/wait-for.js:124:77)\n at checkRealTimersCallback (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/wait-for.js:118:16)\n at Timeout.task [as _onTimeout] (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)\n at listOnTimeout (node:internal/timers:605:17)\n at processTimers (node:internal/timers:541:7)"
- }
- ]
- },
- {
- "name": "should not query when user is not authenticated",
- "fullName": "useAdminAccess should not query when user is not authenticated",
- "state": "passed"
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/dashboard/hooks/__tests__/useDashboardData.test.ts",
- "tests": [
- {
- "name": "should return green health with no schedules and no documents",
- "fullName": "computeVehicleHealth Green health should return green health with no schedules and no documents",
- "state": "passed"
- },
- {
- "name": "should return green health with schedule due in 20 days and 1 upcoming attention item",
- "fullName": "computeVehicleHealth Green health should return green health with schedule due in 20 days and 1 upcoming attention item",
- "state": "passed"
- },
- {
- "name": "should return yellow health with schedule due in 10 days, no overdue",
- "fullName": "computeVehicleHealth Yellow health should return yellow health with schedule due in 10 days, no overdue",
- "state": "passed"
- },
- {
- "name": "should return yellow health with registration expiring in 7 days",
- "fullName": "computeVehicleHealth Yellow health should return yellow health with registration expiring in 7 days",
- "state": "passed"
- },
- {
- "name": "should return red health with maintenance overdue by 5 days",
- "fullName": "computeVehicleHealth Red health should return red health with maintenance overdue by 5 days",
- "state": "passed"
- },
- {
- "name": "should return red health with insurance expired 3 days ago",
- "fullName": "computeVehicleHealth Red health should return red health with insurance expired 3 days ago",
- "state": "passed"
- },
- {
- "name": "should return red health with one overdue maintenance and one due-soon document",
- "fullName": "computeVehicleHealth Red health should return red health with one overdue maintenance and one due-soon document",
- "state": "passed"
- },
- {
- "name": "should sort attention items with overdue first by most overdue, then due-soon by proximity",
- "fullName": "computeVehicleHealth Attention items sorting should sort attention items with overdue first by most overdue, then due-soon by proximity",
- "state": "passed"
- },
- {
- "name": "should enforce max 3 attention items when 5 items are present",
- "fullName": "computeVehicleHealth Max 3 attention items enforcement should enforce max 3 attention items when 5 items are present",
- "state": "passed"
- },
- {
- "name": "should ignore inactive schedules (isActive: false)",
- "fullName": "computeVehicleHealth Inactive schedule handling should ignore inactive schedules (isActive: false)",
- "state": "passed"
- },
- {
- "name": "should ignore schedules without nextDueDate",
- "fullName": "computeVehicleHealth Missing date handling should ignore schedules without nextDueDate",
- "state": "passed"
- },
- {
- "name": "should ignore documents without expirationDate",
- "fullName": "computeVehicleHealth Missing date handling should ignore documents without expirationDate",
- "state": "passed"
- },
- {
- "name": "should use first subtype as label when subtypes array is not empty",
- "fullName": "computeVehicleHealth Label extraction should use first subtype as label when subtypes array is not empty",
- "state": "passed"
- },
- {
- "name": "should use formatted category as label when subtypes array is empty",
- "fullName": "computeVehicleHealth Label extraction should use formatted category as label when subtypes array is empty",
- "state": "passed"
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/documents/components/ExpirationBadge.test.tsx",
- "tests": [
- {
- "name": "renders nothing for null",
- "fullName": "ExpirationBadge when no expiration date is provided renders nothing for null",
- "state": "passed"
- },
- {
- "name": "renders nothing for undefined",
- "fullName": "ExpirationBadge when no expiration date is provided renders nothing for undefined",
- "state": "passed"
- },
- {
- "name": "renders nothing for empty string",
- "fullName": "ExpirationBadge when no expiration date is provided renders nothing for empty string",
- "state": "passed"
- },
- {
- "name": "shows \"Expired\" badge for past dates",
- "fullName": "ExpirationBadge when document is expired shows \"Expired\" badge for past dates",
- "state": "passed"
- },
- {
- "name": "shows \"Expired\" badge for dates far in the past",
- "fullName": "ExpirationBadge when document is expired shows \"Expired\" badge for dates far in the past",
- "state": "passed"
- },
- {
- "name": "has red styling for expired badge",
- "fullName": "ExpirationBadge when document is expired has red styling for expired badge",
- "state": "passed"
- },
- {
- "name": "shows \"Expires today\" badge",
- "fullName": "ExpirationBadge when document expires today shows \"Expires today\" badge",
- "state": "passed"
- },
- {
- "name": "has amber styling for expiring soon badge",
- "fullName": "ExpirationBadge when document expires today has amber styling for expiring soon badge",
- "state": "passed"
- },
- {
- "name": "shows \"Expires tomorrow\" badge",
- "fullName": "ExpirationBadge when document expires tomorrow shows \"Expires tomorrow\" badge",
- "state": "passed"
- },
- {
- "name": "shows \"Expires in X days\" badge for 15 days",
- "fullName": "ExpirationBadge when document expires within 30 days shows \"Expires in X days\" badge for 15 days",
- "state": "passed"
- },
- {
- "name": "shows \"Expires in X days\" badge for 30 days",
- "fullName": "ExpirationBadge when document expires within 30 days shows \"Expires in X days\" badge for 30 days",
- "state": "passed"
- },
- {
- "name": "shows \"Expires in X days\" badge for 2 days",
- "fullName": "ExpirationBadge when document expires within 30 days shows \"Expires in X days\" badge for 2 days",
- "state": "passed"
- },
- {
- "name": "renders nothing for 31 days out",
- "fullName": "ExpirationBadge when document expires after 30 days renders nothing for 31 days out",
- "state": "passed"
- },
- {
- "name": "renders nothing for dates far in the future",
- "fullName": "ExpirationBadge when document expires after 30 days renders nothing for dates far in the future",
- "state": "passed"
- },
- {
- "name": "applies custom className to the badge",
- "fullName": "ExpirationBadge className prop applies custom className to the badge",
- "state": "passed"
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/admin/__tests__/components/AdminSectionHeader.test.tsx",
- "tests": [
- {
- "name": "should render with title and stats",
- "fullName": "AdminSectionHeader should render with title and stats",
- "state": "passed"
- },
- {
- "name": "should render with empty stats",
- "fullName": "AdminSectionHeader should render with empty stats",
- "state": "passed"
- },
- {
- "name": "should format large numbers with locale",
- "fullName": "AdminSectionHeader should format large numbers with locale",
- "state": "passed"
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/shared/components/CameraCapture/CameraCapture.test.tsx",
- "tests": [
- {
- "name": "shows loading state while requesting permission",
- "fullName": "CameraCapture Permission handling shows loading state while requesting permission",
- "state": "passed"
- },
- {
- "name": "shows error when permission denied",
- "fullName": "CameraCapture Permission handling shows error when permission denied",
- "state": "passed"
- },
- {
- "name": "shows error when camera unavailable",
- "fullName": "CameraCapture Permission handling shows error when camera unavailable",
- "state": "passed"
- },
- {
- "name": "shows viewfinder when camera access granted",
- "fullName": "CameraCapture Viewfinder shows viewfinder when camera access granted",
- "state": "passed"
- },
- {
- "name": "shows cancel button in viewfinder",
- "fullName": "CameraCapture Viewfinder shows cancel button in viewfinder",
- "state": "passed"
- },
- {
- "name": "calls onCancel when cancel button clicked",
- "fullName": "CameraCapture Viewfinder calls onCancel when cancel button clicked",
- "state": "passed"
- },
- {
- "name": "shows VIN guidance when guidanceType is vin",
- "fullName": "CameraCapture Guidance overlay shows VIN guidance when guidanceType is vin",
- "state": "passed"
- },
- {
- "name": "shows receipt guidance when guidanceType is receipt",
- "fullName": "CameraCapture Guidance overlay shows receipt guidance when guidanceType is receipt",
- "state": "passed"
- },
- {
- "name": "shows upload file button in viewfinder",
- "fullName": "CameraCapture File fallback shows upload file button in viewfinder",
- "state": "passed"
- },
- {
- "name": "switches to file fallback when upload file clicked",
- "fullName": "CameraCapture File fallback switches to file fallback when upload file clicked",
- "state": "passed"
- },
- {
- "name": "renders upload area",
- "fullName": "FileInputFallback renders upload area",
- "state": "passed"
- },
- {
- "name": "shows accepted formats",
- "fullName": "FileInputFallback shows accepted formats",
- "state": "passed"
- },
- {
- "name": "shows max file size",
- "fullName": "FileInputFallback shows max file size",
- "state": "passed"
- },
- {
- "name": "calls onCancel when cancel clicked",
- "fullName": "FileInputFallback calls onCancel when cancel clicked",
- "state": "passed"
- },
- {
- "name": "shows error for invalid file type",
- "fullName": "FileInputFallback shows error for invalid file type",
- "state": "passed"
- },
- {
- "name": "shows error for file too large",
- "fullName": "FileInputFallback shows error for file too large",
- "state": "passed"
- },
- {
- "name": "calls onFileSelect with valid file",
- "fullName": "FileInputFallback calls onFileSelect with valid file",
- "state": "passed"
- },
- {
- "name": "renders nothing when type is none",
- "fullName": "GuidanceOverlay renders nothing when type is none",
- "state": "passed"
- },
- {
- "name": "renders VIN guidance with correct description",
- "fullName": "GuidanceOverlay renders VIN guidance with correct description",
- "state": "passed"
- },
- {
- "name": "renders receipt guidance with correct description",
- "fullName": "GuidanceOverlay renders receipt guidance with correct description",
- "state": "passed"
- },
- {
- "name": "renders document guidance with correct description",
- "fullName": "GuidanceOverlay renders document guidance with correct description",
- "state": "passed"
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/admin/__tests__/components/SelectionToolbar.test.tsx",
- "tests": [
- {
- "name": "should not render when selectedCount is 0",
- "fullName": "SelectionToolbar should not render when selectedCount is 0",
- "state": "passed"
- },
- {
- "name": "should render when items are selected",
- "fullName": "SelectionToolbar should render when items are selected",
- "state": "passed"
- },
- {
- "name": "should call onClear when Clear button clicked",
- "fullName": "SelectionToolbar should call onClear when Clear button clicked",
- "state": "passed"
- },
- {
- "name": "should call onSelectAll when Select All button clicked",
- "fullName": "SelectionToolbar should call onSelectAll when Select All button clicked",
- "state": "passed"
- },
- {
- "name": "should render custom action buttons",
- "fullName": "SelectionToolbar should render custom action buttons",
- "state": "passed"
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/__tests__/components/StationCard.test.tsx",
- "tests": [
- {
- "name": "should render station name and address",
- "fullName": "StationCard Rendering should render station name and address",
- "state": "passed"
- },
- {
- "name": "should render station photo if available",
- "fullName": "StationCard Rendering should render station photo if available",
- "state": "passed"
- },
- {
- "name": "should render rating when available",
- "fullName": "StationCard Rendering should render rating when available",
- "state": "passed"
- },
- {
- "name": "should render distance chip",
- "fullName": "StationCard Rendering should render distance chip",
- "state": "passed"
- },
- {
- "name": "should not crash when photo is missing",
- "fullName": "StationCard Rendering should not crash when photo is missing",
- "state": "passed"
- },
- {
- "name": "should call onSave when bookmark button clicked (not saved)",
- "fullName": "StationCard Save/Delete Actions should call onSave when bookmark button clicked (not saved)",
- "state": "passed"
- },
- {
- "name": "should call onDelete when bookmark button clicked (saved)",
- "fullName": "StationCard Save/Delete Actions should call onDelete when bookmark button clicked (saved)",
- "state": "passed"
- },
- {
- "name": "should show filled bookmark icon when saved",
- "fullName": "StationCard Save/Delete Actions should show filled bookmark icon when saved",
- "state": "passed"
- },
- {
- "name": "should show outline bookmark icon when not saved",
- "fullName": "StationCard Save/Delete Actions should show outline bookmark icon when not saved",
- "state": "passed"
- },
- {
- "name": "should open Google Maps when directions button clicked",
- "fullName": "StationCard Directions Link should open Google Maps when directions button clicked",
- "state": "failed",
- "errors": [
- {
- "message": "Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\nExpected: StringContaining \"google.com/maps\", \"_blank\"\n\nNumber of calls: 0\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/__tests__/components/StationCard.test.tsx:120:27)\n at Promise.then.completed (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:316:40)\n at _runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/testWorker.js:106:12)"
- }
- ]
- },
- {
- "name": "should encode address in directions URL",
- "fullName": "StationCard Directions Link should encode address in directions URL",
- "state": "failed",
- "errors": [
- {
- "message": "Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\nExpected: StringContaining \"123%20Main%20St%2C%20San%20Francisco%2C%20CA%2094105\", \"_blank\"\n\nNumber of calls: 0\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/__tests__/components/StationCard.test.tsx:132:27)\n at Promise.then.completed (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:316:40)\n at _runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/testWorker.js:106:12)"
- }
- ]
- },
- {
- "name": "should have minimum 44px button heights",
- "fullName": "StationCard Touch Targets should have minimum 44px button heights",
- "state": "passed"
- },
- {
- "name": "should call onSelect when card is clicked",
- "fullName": "StationCard Card Selection should call onSelect when card is clicked",
- "state": "passed"
- },
- {
- "name": "should not call onSelect when button is clicked",
- "fullName": "StationCard Card Selection should not call onSelect when button is clicked",
- "state": "passed"
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/admin/__tests__/hooks/useBulkSelection.test.ts",
- "tests": [
- {
- "name": "should initialize with empty selection",
- "fullName": "useBulkSelection should initialize with empty selection",
- "state": "passed"
- },
- {
- "name": "should toggle individual item selection",
- "fullName": "useBulkSelection should toggle individual item selection",
- "state": "passed"
- },
- {
- "name": "should toggle all items",
- "fullName": "useBulkSelection should toggle all items",
- "state": "passed"
- },
- {
- "name": "should reset all selections",
- "fullName": "useBulkSelection should reset all selections",
- "state": "passed"
- },
- {
- "name": "should return selected items",
- "fullName": "useBulkSelection should return selected items",
- "state": "passed"
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/admin/__tests__/useAdmins.test.tsx",
- "tests": [
- {
- "name": "should fetch admin users",
- "fullName": "Admin user management hooks useAdmins should fetch admin users",
- "state": "passed"
- },
- {
- "name": "should create admin and show success toast",
- "fullName": "Admin user management hooks useCreateAdmin should create admin and show success toast",
- "state": "passed"
- },
- {
- "name": "should handle create admin error",
- "fullName": "Admin user management hooks useCreateAdmin should handle create admin error",
- "state": "passed"
- },
- {
- "name": "should revoke admin and show success toast",
- "fullName": "Admin user management hooks useRevokeAdmin should revoke admin and show success toast",
- "state": "passed"
- },
- {
- "name": "should reinstate admin and show success toast",
- "fullName": "Admin user management hooks useReinstateAdmin should reinstate admin and show success toast",
- "state": "passed"
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/shared/components/CameraCapture/__tests__/getInitialCropForGuidance.test.ts",
- "tests": [
- {
- "name": "returns undefined for \"none\" guidance type",
- "fullName": "getInitialCropForGuidance returns undefined for \"none\" guidance type",
- "state": "passed"
- },
- {
- "name": "returns centered 85%-width crop with 6:1 AR for VIN",
- "fullName": "getInitialCropForGuidance returns centered 85%-width crop with 6:1 AR for VIN",
- "state": "passed"
- },
- {
- "name": "returns centered 70%-height crop with 2:3 AR for receipt",
- "fullName": "getInitialCropForGuidance returns centered 70%-height crop with 2:3 AR for receipt",
- "state": "passed"
- },
- {
- "name": "returns centered 70%-height crop with 8.5:11 AR for document",
- "fullName": "getInitialCropForGuidance returns centered 70%-height crop with 8.5:11 AR for document",
- "state": "passed"
- },
- {
- "name": "returns crop areas within 0-100 bounds for all types",
- "fullName": "getInitialCropForGuidance returns crop areas within 0-100 bounds for all types",
- "state": "passed"
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/dashboard/components/__tests__/VehicleRosterCard.test.tsx",
- "tests": [
- {
- "name": "renders vehicle label with year make model",
- "fullName": "VehicleRosterCard renders vehicle label with year make model",
- "state": "passed"
- },
- {
- "name": "renders health badge with correct color class for green health",
- "fullName": "VehicleRosterCard renders health badge with correct color class for green health",
- "state": "passed"
- },
- {
- "name": "renders health badge with correct color class for yellow health",
- "fullName": "VehicleRosterCard renders health badge with correct color class for yellow health",
- "state": "passed"
- },
- {
- "name": "renders health badge with correct color class for red health",
- "fullName": "VehicleRosterCard renders health badge with correct color class for red health",
- "state": "passed"
- },
- {
- "name": "renders attention items text",
- "fullName": "VehicleRosterCard renders attention items text",
- "state": "passed"
- },
- {
- "name": "renders odometer with formatting",
- "fullName": "VehicleRosterCard renders odometer with formatting",
- "state": "passed"
- },
- {
- "name": "calls onClick with vehicle ID when clicked",
- "fullName": "VehicleRosterCard calls onClick with vehicle ID when clicked",
- "state": "passed"
- },
- {
- "name": "renders All clear when no attention items",
- "fullName": "VehicleRosterCard renders All clear when no attention items",
- "state": "passed"
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/admin/__tests__/catalogShared.test.ts",
- "tests": [
- {
- "name": "describes dependent counts for makes",
- "fullName": "getCascadeSummary describes dependent counts for makes",
- "state": "passed"
- },
- {
- "name": "returns empty string when nothing selected",
- "fullName": "getCascadeSummary returns empty string when nothing selected",
- "state": "passed"
- },
- {
- "name": "prefills parent context for create operations",
- "fullName": "buildDefaultValues prefills parent context for create operations",
- "state": "passed"
- },
- {
- "name": "hydrates existing entity data for editing engines",
- "fullName": "buildDefaultValues hydrates existing entity data for editing engines",
- "state": "passed"
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/__tests__/utils/navigation-links.test.ts",
- "tests": [
- {
- "name": "uses coordinates when valid",
- "fullName": "buildNavigationLinks uses coordinates when valid",
- "state": "passed"
- },
- {
- "name": "falls back to query when coordinates are missing",
- "fullName": "buildNavigationLinks falls back to query when coordinates are missing",
- "state": "passed"
- }
- ]
- },
{
"moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/dashboard/components/__tests__/ActionBar.test.tsx",
"tests": [
@@ -967,430 +14,13 @@
"state": "passed"
},
{
- "name": "calls onLogFuel when Log Fuel button clicked",
- "fullName": "ActionBar calls onLogFuel when Log Fuel button clicked",
+ "name": "calls onLogFuel when Add Fuel Log button clicked",
+ "fullName": "ActionBar calls onLogFuel when Add Fuel Log button clicked",
"state": "passed"
}
]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/__tests__/api/community-stations.api.test.ts",
- "tests": [
- {
- "name": "Module failed to load (Error)",
- "fullName": "Module failed to load (Error)",
- "state": "failed",
- "errors": [
- {
- "message": "Cannot use 'import.meta' outside a module",
- "name": "Error",
- "stack": "Jest encountered an unexpected token\n\nJest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n\nOut of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n\nBy default \"node_modules\" folder is ignored by transformers.\n\nHere's what you can do:\n • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n • To have some of your \"node_modules\" files transformed, you can specify a custom \"transformIgnorePatterns\" in your config.\n • If you need a custom transformation specify a \"transform\" option in your config.\n • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the \"moduleNameMapper\" config option.\n\nYou'll find more details and examples of these config options in the docs:\nhttps://jestjs.io/docs/configuration\nFor information about custom transformations, see:\nhttps://jestjs.io/docs/code-transformation\n\nDetails:\n\n/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/core/api/client.ts:46\nconst API_BASE_URL = import.meta.env.VITE_API_BASE_URL || '/api';\n ^^^^\n\nSyntaxError: Cannot use 'import.meta' outside a module\n at new Script (node:vm:117:7)\n at Runtime.createScriptFromCode (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1505:14)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1399:25)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1048:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/api/community-stations.api.ts:5:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1048:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/__tests__/api/community-stations.api.test.ts:6:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at jestAdapter (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:77:13)\n at processTicksAndRejections (node:internal/process/task_queues:104:5)\n at runTestInternal (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/testWorker.js:106:12)"
- }
- ]
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/__tests__/api/stations.api.test.ts",
- "tests": [
- {
- "name": "Module failed to load (Error)",
- "fullName": "Module failed to load (Error)",
- "state": "failed",
- "errors": [
- {
- "message": "Cannot use 'import.meta' outside a module",
- "name": "Error",
- "stack": "Jest encountered an unexpected token\n\nJest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n\nOut of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n\nBy default \"node_modules\" folder is ignored by transformers.\n\nHere's what you can do:\n • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n • To have some of your \"node_modules\" files transformed, you can specify a custom \"transformIgnorePatterns\" in your config.\n • If you need a custom transformation specify a \"transform\" option in your config.\n • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the \"moduleNameMapper\" config option.\n\nYou'll find more details and examples of these config options in the docs:\nhttps://jestjs.io/docs/configuration\nFor information about custom transformations, see:\nhttps://jestjs.io/docs/code-transformation\n\nDetails:\n\n/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/core/api/client.ts:46\nconst API_BASE_URL = import.meta.env.VITE_API_BASE_URL || '/api';\n ^^^^\n\nSyntaxError: Cannot use 'import.meta' outside a module\n at new Script (node:vm:117:7)\n at Runtime.createScriptFromCode (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1505:14)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1399:25)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1048:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/api/stations.api.ts:5:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1048:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/__tests__/api/stations.api.test.ts:6:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at jestAdapter (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:77:13)\n at processTicksAndRejections (node:internal/process/task_queues:104:5)\n at runTestInternal (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/testWorker.js:106:12)"
- }
- ]
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/__tests__/hooks/useStationsSearch.test.ts",
- "tests": [
- {
- "name": "Module failed to load (Error)",
- "fullName": "Module failed to load (Error)",
- "state": "failed",
- "errors": [
- {
- "message": "Cannot use 'import.meta' outside a module",
- "name": "Error",
- "stack": "Jest encountered an unexpected token\n\nJest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n\nOut of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n\nBy default \"node_modules\" folder is ignored by transformers.\n\nHere's what you can do:\n • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n • To have some of your \"node_modules\" files transformed, you can specify a custom \"transformIgnorePatterns\" in your config.\n • If you need a custom transformation specify a \"transform\" option in your config.\n • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the \"moduleNameMapper\" config option.\n\nYou'll find more details and examples of these config options in the docs:\nhttps://jestjs.io/docs/configuration\nFor information about custom transformations, see:\nhttps://jestjs.io/docs/code-transformation\n\nDetails:\n\n/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/core/api/client.ts:46\nconst API_BASE_URL = import.meta.env.VITE_API_BASE_URL || '/api';\n ^^^^\n\nSyntaxError: Cannot use 'import.meta' outside a module\n at new Script (node:vm:117:7)\n at Runtime.createScriptFromCode (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1505:14)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1399:25)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1048:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/api/stations.api.ts:5:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime._generateMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1690:34)\n at Runtime.requireMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:996:39)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1046:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/hooks/useStationsSearch.ts:6:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1048:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/__tests__/hooks/useStationsSearch.test.ts:8:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at jestAdapter (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:77:13)\n at processTicksAndRejections (node:internal/process/task_queues:104:5)\n at runTestInternal (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/testWorker.js:106:12)"
- }
- ]
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/__tests__/hooks/useCommunityStations.test.ts",
- "tests": [
- {
- "name": "Module failed to load (Error)",
- "fullName": "Module failed to load (Error)",
- "state": "failed",
- "errors": [
- {
- "message": "Cannot use 'import.meta' outside a module",
- "name": "Error",
- "stack": "Jest encountered an unexpected token\n\nJest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n\nOut of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n\nBy default \"node_modules\" folder is ignored by transformers.\n\nHere's what you can do:\n • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n • To have some of your \"node_modules\" files transformed, you can specify a custom \"transformIgnorePatterns\" in your config.\n • If you need a custom transformation specify a \"transform\" option in your config.\n • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the \"moduleNameMapper\" config option.\n\nYou'll find more details and examples of these config options in the docs:\nhttps://jestjs.io/docs/configuration\nFor information about custom transformations, see:\nhttps://jestjs.io/docs/code-transformation\n\nDetails:\n\n/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/core/api/client.ts:46\nconst API_BASE_URL = import.meta.env.VITE_API_BASE_URL || '/api';\n ^^^^\n\nSyntaxError: Cannot use 'import.meta' outside a module\n at new Script (node:vm:117:7)\n at Runtime.createScriptFromCode (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1505:14)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1399:25)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1048:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/api/community-stations.api.ts:5:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime._generateMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1690:34)\n at Runtime.requireMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:996:39)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1046:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/hooks/useCommunityStations.ts:6:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1048:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/stations/__tests__/hooks/useCommunityStations.test.ts:8:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at jestAdapter (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:77:13)\n at processTicksAndRejections (node:internal/process/task_queues:104:5)\n at runTestInternal (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/testWorker.js:106:12)"
- }
- ]
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/pages/__tests__/GuidePage.test.tsx",
- "tests": [
- {
- "name": "renders page heading and subheading",
- "fullName": "GuidePage renders page heading and subheading",
- "state": "passed"
- },
- {
- "name": "renders all 10 section headings",
- "fullName": "GuidePage renders all 10 section headings",
- "state": "passed"
- },
- {
- "name": "renders TOC with correct section titles",
- "fullName": "GuidePage renders TOC with correct section titles",
- "state": "passed"
- },
- {
- "name": "renders navigation bar with Guide link highlighted",
- "fullName": "GuidePage renders navigation bar with Guide link highlighted",
- "state": "passed"
- },
- {
- "name": "renders GuideScreenshot components with loading=\"lazy\"",
- "fullName": "GuidePage renders GuideScreenshot components with loading=\"lazy\"",
- "state": "passed"
- },
- {
- "name": "renders footer with copyright",
- "fullName": "GuidePage renders footer with copyright",
- "state": "passed"
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/documents/mobile/DocumentsMobileScreen.test.tsx",
- "tests": [
- {
- "name": "Module failed to load (Error)",
- "fullName": "Module failed to load (Error)",
- "state": "failed",
- "errors": [
- {
- "message": "Cannot use 'import.meta' outside a module",
- "name": "Error",
- "stack": "Jest encountered an unexpected token\n\nJest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n\nOut of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n\nBy default \"node_modules\" folder is ignored by transformers.\n\nHere's what you can do:\n • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n • To have some of your \"node_modules\" files transformed, you can specify a custom \"transformIgnorePatterns\" in your config.\n • If you need a custom transformation specify a \"transform\" option in your config.\n • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the \"moduleNameMapper\" config option.\n\nYou'll find more details and examples of these config options in the docs:\nhttps://jestjs.io/docs/configuration\nFor information about custom transformations, see:\nhttps://jestjs.io/docs/code-transformation\n\nDetails:\n\n/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/core/api/client.ts:46\nconst API_BASE_URL = import.meta.env.VITE_API_BASE_URL || '/api';\n ^^^^\n\nSyntaxError: Cannot use 'import.meta' outside a module\n at new Script (node:vm:117:7)\n at Runtime.createScriptFromCode (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1505:14)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1399:25)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1048:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/core/hooks/useTierAccess.ts:8:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1048:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/shared-minimal/components/UpgradeRequiredDialog.tsx:22:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1048:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/documents/components/DocumentForm.tsx:3:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1048:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/documents/components/AddDocumentDialog.tsx:3:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1048:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/documents/mobile/DocumentsMobileScreen.tsx:9:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at Runtime.requireModuleOrMock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1048:21)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/documents/mobile/DocumentsMobileScreen.test.tsx:8:1)\n at Runtime._execModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1439:24)\n at Runtime._loadModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:1022:12)\n at Runtime.requireModule (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runtime/build/index.js:882:12)\n at jestAdapter (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:77:13)\n at processTicksAndRejections (node:internal/process/task_queues:104:5)\n at runTestInternal (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/testWorker.js:106:12)"
- }
- ]
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/admin/__tests__/components/EmptyState.test.tsx",
- "tests": [
- {
- "name": "should render with title and description",
- "fullName": "EmptyState should render with title and description",
- "state": "passed"
- },
- {
- "name": "should render with icon",
- "fullName": "EmptyState should render with icon",
- "state": "passed"
- },
- {
- "name": "should render action button when provided",
- "fullName": "EmptyState should render action button when provided",
- "state": "passed"
- },
- {
- "name": "should not render action button when not provided",
- "fullName": "EmptyState should not render action button when not provided",
- "state": "passed"
- }
- ]
- },
- {
- "moduleId": "/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/documents/components/DocumentPreview.test.tsx",
- "tests": [
- {
- "name": "should render PDF preview for PDF documents",
- "fullName": "DocumentPreview PDF Preview should render PDF preview for PDF documents",
- "state": "failed",
- "errors": [
- {
- "message": "Error: Unable to find role=\"application\" and name \"PDF Preview\"\n\nIgnored nodes: comments, script, style\n\u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n\u001b[36m\u001b[39m\n at waitForWrapper (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/wait-for.js:163:27)\n at Object. (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/documents/components/DocumentPreview.test.tsx:82:20)\n at Promise.then.completed (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:104:5)\n at _runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n at runTestInternal (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jest-runner/build/testWorker.js:106:12)",
- "name": "TestingLibraryElementError"
- }
- ]
- },
- {
- "name": "should provide fallback link for PDF when object fails",
- "fullName": "DocumentPreview PDF Preview should provide fallback link for PDF when object fails",
- "state": "passed"
- },
- {
- "name": "should render image preview for image documents",
- "fullName": "DocumentPreview Image Preview should render image preview for image documents",
- "state": "passed"
- },
- {
- "name": "should have proper image styling",
- "fullName": "DocumentPreview Image Preview should have proper image styling",
- "state": "failed",
- "errors": [
- {
- "message": "Error: expect(element).toHaveClass(\"max-w-full h-auto rounded-lg border\")\n\nExpected the element to have class:\n max-w-full h-auto rounded-lg border\nReceived:\n w-full h-auto object-contain pointer-events-none\n\nIgnored nodes: comments, script, style\n\u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[0mPinch to zoom • Double-tap to zoom • Drag to pan\u001b[0m\n \u001b[36m
\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n\u001b[36m\u001b[39m\n at /Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/src/features/documents/components/DocumentPreview.test.tsx:138:23\n at runWithExpensiveErrorDiagnosticsDisabled (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/config.js:47:12)\n at checkCallback (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/wait-for.js:124:77)\n at checkRealTimersCallback (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/@testing-library/dom/dist/wait-for.js:118:16)\n at Timeout.task [as _onTimeout] (/Users/egullickson/Documents/Technology/coding/motovaultpro/frontend/node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)\n at listOnTimeout (node:internal/timers:605:17)\n at processTimers (node:internal/timers:541:7)"
- }
- ]
- },
- {
- "name": "should show no preview message for non-previewable documents",
- "fullName": "DocumentPreview Non-previewable Documents should show no preview message for non-previewable documents",
- "state": "passed"
- },
- {
- "name": "should not create blob URL for non-previewable documents",
- "fullName": "DocumentPreview Non-previewable Documents should not create blob URL for non-previewable documents",
- "state": "passed"
- },
- {
- "name": "should show error message when download fails",
- "fullName": "DocumentPreview Error Handling should show error message when download fails",
- "state": "passed"
- },
- {
- "name": "should handle network errors gracefully",
- "fullName": "DocumentPreview Error Handling should handle network errors gracefully",
- "state": "passed"
- },
- {
- "name": "should detect PDF from content type",
- "fullName": "DocumentPreview Content Type Detection should detect PDF from content type",
- "state": "passed"
- },
- {
- "name": "should detect images from content type",
- "fullName": "DocumentPreview Content Type Detection should detect images from content type",
- "state": "passed"
- },
- {
- "name": "should handle PNG images",
- "fullName": "DocumentPreview Content Type Detection should handle PNG images",
- "state": "passed"
- },
- {
- "name": "should handle documents with undefined content type",
- "fullName": "DocumentPreview Content Type Detection should handle documents with undefined content type",
- "state": "failed",
- "errors": [
- {
- "message": "TestingLibraryElementError: Unable to find an element with the text: No preview available.. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.\n\nIgnored nodes: comments, script, style\n\u001b[36m\u001b[39m\n \u001b[36m