|
| 1 | + |
| 2 | +> @optimizely/ [email protected] test-vitest-browser |
| 3 | +> node ./scripts/run-browser-tests.js |
| 4 | + |
| 5 | +[ [email protected]] injecting env (1) from .env -- tip: ⚙️ specify custom .env file path with { path: '/custom/path/.env' } |
| 6 | +Starting BrowserStack Local tunnel... |
| 7 | +BrowserStack Local tunnel started successfully |
| 8 | +Local Identifier: 75719 |
| 9 | +Waiting for tunnel to establish... |
| 10 | +Tunnel ready! |
| 11 | + |
| 12 | +================================================================================ |
| 13 | +Running tests on BrowserStack (Chrome 102, Firefox 91, Edge 84, Safari 13.1, Opera 76)... |
| 14 | +================================================================================ |
| 15 | + |
| 16 | +> @optimizely/ [email protected] test-vitest |
| 17 | +> vitest run --config vitest.browser.config.mts |
| 18 | + |
| 19 | +[ [email protected]] injecting env (0) from .env -- tip: 🔐 encrypt with Dotenvx: https://dotenvx.com |
| 20 | + |
| 21 | + RUN v3.2.4 /Users/raju.ahmed/workspace/javascript-sdk |
| 22 | + |
| 23 | +onInit - Browser test session starting |
| 24 | +[ [email protected]] injecting env (0) from .env -- tip: ⚙️ enable debug logging with { debug: true } |
| 25 | + ✓ TS |chrome| lib/entrypoint.test-d.ts (0 test) |
| 26 | + ✓ TS |chrome| lib/entrypoint.universal.test-d.ts (0 test) |
| 27 | + |
| 28 | +[BROWSER LOG] 2025-12-18T10:30:14.027Z |
| 29 | +[Debug] window.__vitest_browser_runner__: undefined undefined |
| 30 | + |
| 31 | +[BROWSER LOG] 2025-12-18T10:30:14.024Z |
| 32 | +[Console Capture] Initialized successfully |
| 33 | + |
| 34 | +[BROWSER LOG] 2025-12-18T10:30:14.201Z |
| 35 | +entry url >>>>>>>>>>>>>>>>> ws://localhost:63315/__vitest_browser_api__?type=orchestrator&rpcId=96e1a0c1-accd-463f-90e4-b35b32a5b667&sessionId=96e1a0c1-accd-463f-90e4-b35b32a5b667&projectName=chrome&method=orchestrate&token=616b325d-718f-4789-a822-3f7dff96c3ff |
| 36 | + |
| 37 | +[BROWSER LOG] 2025-12-18T10:30:14.203Z |
| 38 | +[WebSocket] Connecting to: ws://localhost:63315/__vitest_browser_api__?type=orchestrator&rpcId=96e1a0c1-accd-463f-90e4-b35b32a5b667&sessionId=96e1a0c1-accd-463f-90e4-b35b32a5b667&projectName=chrome&method=orchestrate&token=616b325d-718f-4789-a822-3f7dff96c3ff |
| 39 | + |
| 40 | +[BROWSER LOG] 2025-12-18T10:30:14.459Z |
| 41 | +[WebSocket] Connection OPENED: ws://localhost:63315/__vitest_browser_api__?type=orchestrator&rpcId=96e1a0c1-accd-463f-90e4-b35b32a5b667&sessionId=96e1a0c1-accd-463f-90e4-b35b32a5b667&projectName=chrome&method=orchestrate&token=616b325d-718f-4789-a822-3f7dff96c3ff |
| 42 | + |
| 43 | +[BROWSER LOG] 2025-12-18T10:30:14.580Z |
| 44 | +[WebSocket] Connecting to: ws://localhost:63315/?token=uJ_nizGnNtU8 |
| 45 | + |
| 46 | +[BROWSER LOG] 2025-12-18T10:30:14.703Z |
| 47 | +[WebSocket] Connecting to: ws://localhost:63315/__vitest_api__?token=616b325d-718f-4789-a822-3f7dff96c3ff |
| 48 | + |
| 49 | +[BROWSER LOG] 2025-12-18T10:30:14.990Z |
| 50 | +[WebSocket] Connection OPENED: ws://localhost:63315/?token=uJ_nizGnNtU8 |
| 51 | + |
| 52 | +[BROWSER LOG] 2025-12-18T10:30:14.992Z |
| 53 | +[WebSocket] Connection OPENED: ws://localhost:63315/__vitest_api__?token=616b325d-718f-4789-a822-3f7dff96c3ff |
| 54 | + |
| 55 | +[BROWSER LOG] 2025-12-18T10:30:16.168Z |
| 56 | +[Console Capture] Initialized successfully |
| 57 | + |
| 58 | +[BROWSER LOG] 2025-12-18T10:30:16.170Z |
| 59 | +[Debug] window.__vitest_browser_runner__: object {"moduleCache":{},"cleanups":[],"config":{"mode":"test","isolate":false,"defines":{},"setupFiles":["/Users/raju.ahmed/workspace/javascript-sdk/vitest.setup.ts"],"allowOnly":true,"testTimeout":120000,"hookTimeout":120000,"clearMocks":false,"mockReset":false,"restoreMocks":false,"unstubEnvs":false,"unstubGlobals":false,"maxConcurrency":5,"pool":"forks","expect":{},"snapshotSerializers":[],"disableConsoleIntercept":false,"root":"/Users/raju.ahmed/workspace/javascript-sdk","name":"chrome","globals":false,"coverage":{"reportsDirectory":"./coverage","provider":"v8","enabled":false,"htmlReporter":{}},"fakeTimers":{"loopLimit":10000,"shouldClearNativeTimers":true},"poolOptions":{"forks":{"singleFork":false,"isolate":false},"threads":{"singleThread":false,"isolate":false},"vmThreads":{"singleThread":false},"vmForks":{"singleFork":false}},"deps":{"web":{"transformAssets":true,"transformCss":true,"transformGlobPattern":[]},"optimizer":{"web":{"enabled":true},"ssr":{"enabled":true}},"moduleDirectories":["/node_modules/"]},"snapshotOptions":{"updateSnapshot":"new","snapshotFormat":{},"expand":false},"sequence":{"hooks":"stack"},"inspector":{"enabled":false,"waitForDebugger":false},"watch":false,"includeTaskLocation":true,"env":{"BASE_URL":"/","MODE":"test","DEV":true,"PROD":false,"VITEST_BROWSER_DEBUG":""},"browser":{"name":"chrome","headless":false,"isolate":true,"fileParallelism":true,"ui":true,"viewport":{"width":414,"height":896},"screenshotFailures":false,"locators":{"testIdAttribute":"data-testid"},"providerOptions":{}}},"viteConfig":{"root":"/Users/raju.ahmed/workspace/javascript-sdk"},"type":"tester","sessionId":"96e1a0c1-accd-463f-90e4-b35b32a5b667","testerId":"19b34b77-86a5-448f-8774-1d7fc1bff13a","provider":"webdriverio","method":"none","providedContext":{},"cdp":{}} |
| 60 | + |
| 61 | +[BROWSER LOG] 2025-12-18T10:30:16.173Z |
| 62 | +[WebSocket] Connecting to: ws://localhost:63315/?token=uJ_nizGnNtU8 |
| 63 | + |
| 64 | +[BROWSER LOG] 2025-12-18T10:30:16.509Z |
| 65 | +[WebSocket] Connection OPENED: ws://localhost:63315/?token=uJ_nizGnNtU8 |
| 66 | + |
| 67 | +[BROWSER LOG] 2025-12-18T10:30:19.778Z |
| 68 | +[WebSocket] Connecting to: ws://localhost:63315/__vitest_browser_api__?type=tester&rpcId=19b34b77-86a5-448f-8774-1d7fc1bff13a&sessionId=96e1a0c1-accd-463f-90e4-b35b32a5b667&projectName=chrome&method=none&token=616b325d-718f-4789-a822-3f7dff96c3ff |
| 69 | + |
| 70 | +[BROWSER LOG] 2025-12-18T10:30:19.777Z |
| 71 | +entry url >>>>>>>>>>>>>>>>> ws://localhost:63315/__vitest_browser_api__?type=tester&rpcId=19b34b77-86a5-448f-8774-1d7fc1bff13a&sessionId=96e1a0c1-accd-463f-90e4-b35b32a5b667&projectName=chrome&method=none&token=616b325d-718f-4789-a822-3f7dff96c3ff |
| 72 | + |
| 73 | +[BROWSER WARN] 2025-12-18T10:30:19.795Z |
| 74 | +Module "util" has been externalized for browser compatibility. Cannot access "util.inspect" in client code. See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details. |
| 75 | + |
| 76 | +[BROWSER LOG] 2025-12-18T10:30:20.015Z |
| 77 | +[WebSocket] Connection OPENED: ws://localhost:63315/__vitest_browser_api__?type=tester&rpcId=19b34b77-86a5-448f-8774-1d7fc1bff13a&sessionId=96e1a0c1-accd-463f-90e4-b35b32a5b667&projectName=chrome&method=none&token=616b325d-718f-4789-a822-3f7dff96c3ff |
| 78 | +[stdout] ================================================================================ |
| 79 | +stdout | lib/event_processor/event_builder/user_event.spec.ts |
| 80 | +================================================================================ |
| 81 | +[stdout] Vitest Browser Session ID (global): unknown |
| 82 | +stdout | lib/event_processor/event_builder/user_event.spec.ts |
| 83 | +Vitest Browser Session ID (global): unknown |
| 84 | +[stdout] Vitest Browser Session ID (URL): 96e1a0c1-accd-463f-90e4-b35b32a5b667 |
| 85 | +stdout | lib/event_processor/event_builder/user_event.spec.ts |
| 86 | +Vitest Browser Session ID (URL): 96e1a0c1-accd-463f-90e4-b35b32a5b667 |
| 87 | +[stdout] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 |
| 88 | +stdout | lib/event_processor/event_builder/user_event.spec.ts |
| 89 | +User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 |
| 90 | +[stdout] Location: http://localhost:63315/?sessionId=96e1a0c1-accd-463f-90e4-b35b32a5b667&iframeId=/Users/raju.ahmed/workspace/javascript-sdk/lib/event_processor/event_builder/user_event.spec.ts |
| 91 | +stdout | lib/event_processor/event_builder/user_event.spec.ts |
| 92 | +Location: http://localhost:63315/?sessionId=96e1a0c1-accd-463f-90e4-b35b32a5b667&iframeId=/Users/raju.ahmed/workspace/javascript-sdk/lib/event_processor/event_builder/user_event.spec.ts |
| 93 | +[stdout] ================================================================================ |
| 94 | +stdout | lib/event_processor/event_builder/user_event.spec.ts |
| 95 | +================================================================================ |
| 96 | + |
| 97 | +[BROWSER LOG] 2025-12-18T10:30:22.203Z |
| 98 | +================================================================================ |
| 99 | + |
| 100 | +[BROWSER LOG] 2025-12-18T10:30:22.206Z |
| 101 | +Vitest Browser Session ID (global): unknown |
| 102 | + |
| 103 | +[BROWSER LOG] 2025-12-18T10:30:22.210Z |
| 104 | +User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 |
| 105 | + |
| 106 | +[BROWSER LOG] 2025-12-18T10:30:22.208Z |
| 107 | +Vitest Browser Session ID (URL): 96e1a0c1-accd-463f-90e4-b35b32a5b667 |
| 108 | + |
| 109 | +[BROWSER LOG] 2025-12-18T10:30:22.215Z |
| 110 | +================================================================================ |
| 111 | + ✓ |chrome| lib/event_processor/event_builder/user_event.spec.ts (2 tests) 22ms |
| 112 | + |
| 113 | +[BROWSER LOG] 2025-12-18T10:30:22.212Z |
| 114 | +Location: http://localhost:63315/?sessionId=96e1a0c1-accd-463f-90e4-b35b32a5b667&iframeId=/Users/raju.ahmed/workspace/javascript-sdk/lib/event_processor/event_builder/user_event.spec.ts |
| 115 | + |
| 116 | + Test Files 3 passed (3) |
| 117 | + Tests 2 passed (2) |
| 118 | +Type Errors no errors |
| 119 | + Start at 16:29:59 |
| 120 | + Duration 20.64s (transform 0ms, setup 124ms, collect 1.80s, tests 22ms, environment 0ms, prepare 14.16s, typecheck 1.37s) |
| 121 | + |
| 122 | + |
| 123 | +✓ All browser tests passed! |
| 124 | + |
| 125 | +================================================================================ |
| 126 | +Browser test summary: |
| 127 | +================================================================================ |
| 128 | +All browser tests passed! |
| 129 | +BrowserStack Local tunnel stopped |
0 commit comments