Skip to content

Add headless render tests using JSDOM. #1034

Add headless render tests using JSDOM.

Add headless render tests using JSDOM. #1034

Triggered via pull request December 14, 2024 00:46
Status Failure
Total duration 1m 19s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 3 warnings
Unhandled error: packages/plot/src/interactors/Interval1D.js#L71
ReferenceError: navigator is not defined ❯ SVGElement.defaultTouchable ../../node_modules/d3-brush/src/brush.js:122:3 ❯ Selection.default [as filter] ../../node_modules/d3-selection/src/selection/filter.js:9:38 ❯ brush ../../node_modules/d3-brush/src/brush.js:206:8 ❯ Selection.default [as call] ../../node_modules/d3-selection/src/selection/call.js:4:12 ❯ Interval1D.init ../plot/src/interactors/Interval1D.js:71:8 ❯ Module.plotRenderer ../plot/src/plot-renderer.js:64:22 ❯ Plot.render ../plot/src/plot.js:67:23 ❯ ../plot/src/plot.js:60:40 ❯ invokeTheCallbackFunction ../../node_modules/jsdom/lib/jsdom/living/generated/Function.js:19:26 ❯ runAnimationFrameCallbacks ../../node_modules/jsdom/lib/jsdom/browser/Window.js:662:13 This error originated in "test/render.test.js" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should render the density1d spec". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: packages/plot/src/interactors/Interval1D.js#L71
ReferenceError: navigator is not defined ❯ SVGElement.defaultTouchable ../../node_modules/d3-brush/src/brush.js:122:3 ❯ Selection.default [as filter] ../../node_modules/d3-selection/src/selection/filter.js:9:38 ❯ brush ../../node_modules/d3-brush/src/brush.js:206:8 ❯ Selection.default [as call] ../../node_modules/d3-selection/src/selection/call.js:4:12 ❯ Interval1D.init ../plot/src/interactors/Interval1D.js:71:8 ❯ Module.plotRenderer ../plot/src/plot-renderer.js:64:22 ❯ Plot.render ../plot/src/plot.js:67:23 ❯ ../plot/src/plot.js:60:40 ❯ invokeTheCallbackFunction ../../node_modules/jsdom/lib/jsdom/living/generated/Function.js:19:26 ❯ runAnimationFrameCallbacks ../../node_modules/jsdom/lib/jsdom/browser/Window.js:662:13 This error originated in "test/render.test.js" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should render the density1d spec". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Test in Node
Process completed with exit code 1.
Test in Python
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test in Rust
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test in Node
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636