Skip to content

Visual testing scenarios #138

Visual testing scenarios

Visual testing scenarios #138

Triggered via pull request December 19, 2024 16:13
Status Failure
Total duration 26s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 7 warnings
build: src/sections/GravitySection.tsx#L14
'onDebugData' is defined but never used
build
Process completed with exit code 1.
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build: src/components/GravitySimulator/GravitySimulator.tsx#L200
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead
build: src/components/GravitySimulator/GravitySimulator.tsx#L211
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead
build: src/components/GravitySimulator/GravitySimulator.tsx#L667
React Hook useEffect has missing dependencies: 'createParticle', 'gravityPoints', 'gravityRef', 'handlePointDelete', 'handleSelectScenario', 'isFullscreen', 'isPaused', 'onApiReady', 'particles', 'paths', 'physicsConfig', 'toggleFullscreen', and 'updateSettings'. Either include them or remove the dependency array. If 'onApiReady' changes too often, find the parent component that defines it and wrap that definition in useCallback
build: src/components/GravityVision/GravityVision.tsx#L206
React Hook useEffect has missing dependencies: 'gridLinesRef', 'lastDensityRef', 'lastShowVisionRef', 'lastWarpPointsKeyRef', and 'layerRef'. Either include them or remove the dependency array
build: src/components/GravityVision/GravityVision.tsx#L311
React Hook useEffect has missing dependencies: 'averageEffectiveMassRef', 'gridLinesRef', 'isPausedRef', 'lastWarpPointsKeyRef', and 'onFrameHandlerRef'. Either include them or remove the dependency array
build: src/contexts/SettingsContext.tsx#L173
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components