Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

test: resolve the terrain fixture through its dependency

Sameh Khamise82e0a149f51
diff --git a/src/data/contactTrailRenderer.test.mjs b/src/data/contactTrailRenderer.test.mjs
index 1021cd7a5..f5204c6ef 100644
--- a/src/data/contactTrailRenderer.test.mjs
+++ b/src/data/contactTrailRenderer.test.mjs
@@ -160,8 +160,8 @@ test('ground body and clipped head stay inside rebuild and frame geometry budget
Cesium.ApproximateTerrainHeights._terrainHeights = JSON.parse(
readFileSync(
new URL(
- '../../node_modules/@cesium/engine/Source/Assets/approximateTerrainHeights.json',
- import.meta.url,
+ import.meta
+ .resolve('@cesium/engine/Source/Assets/approximateTerrainHeights.json'),
),
),
);