[Vis Tools] Remove Map drill down #5874
Merged
Google Cloud Build / website-pull-request-npm (datcom-ci)
succeeded
Dec 26, 2025 in 6m 23s
Summary
Build Information
| Trigger | website-pull-request-npm |
| Build | 77dc278e-20a3-4498-ae45-7bf1ce106bef |
| Start | 2025-12-26T14:48:19-08:00 |
| Duration | 5m33.418s |
| Status | SUCCESS |
Steps
| Step | Status | Duration |
|---|---|---|
| client-test | SUCCESS | 5m22.151s |
Details
starting build "77dc278e-20a3-4498-ae45-7bf1ce106bef"
FETCHSOURCE
From https://github.com/datacommonsorg/website
* branch 148f791f353c1c46c5347599a7c4055b154d3e08 -> FETCH_HEAD
Updating files: 89% (2157/2423)
Updating files: 90% (2181/2423)
Updating files: 91% (2205/2423)
Updating files: 92% (2230/2423)
Updating files: 93% (2254/2423)
Updating files: 94% (2278/2423)
Updating files: 95% (2302/2423)
Updating files: 96% (2327/2423)
Updating files: 97% (2351/2423)
Updating files: 98% (2375/2423)
Updating files: 99% (2399/2423)
Updating files: 100% (2423/2423)
Updating files: 100% (2423/2423), done.
HEAD is now at 148f791 Remove unused euro countries references
GitCommit:
148f791f353c1c46c5347599a7c4055b154d3e08
BUILD
Pulling image: gcr.io/datcom-ci/node:2025-10-01
2025-10-01: Pulling from datcom-ci/node
b85a868b505f: Pulling fs layer
4bc2eda9354f: Pulling fs layer
a407a484e74b: Pulling fs layer
cc6fff309142: Pulling fs layer
09be68c4cfd1: Pulling fs layer
4f2fc846f636: Pulling fs layer
b471a8c3f1d6: Pulling fs layer
dd5c82065067: Pulling fs layer
c79cd3db6e51: Pulling fs layer
71f0d0490247: Pulling fs layer
8674d43d4892: Pulling fs layer
574e4ed3a819: Pulling fs layer
81f0d49e568a: Pulling fs layer
6d2718751084: Pulling fs layer
8061492fb0d0: Pulling fs layer
bdb0d3f2b395: Pulling fs layer
71f0d0490247: Waiting
6d2718751084: Waiting
8061492fb0d0: Waiting
8674d43d4892: Waiting
bdb0d3f2b395: Waiting
574e4ed3a819: Waiting
81f0d49e568a: Waiting
b471a8c3f1d6: Waiting
dd5c82065067: Waiting
c79cd3db6e51: Waiting
09be68c4cfd1: Verifying Checksum
09be68c4cfd1: Download complete
cc6fff309142: Download complete
4bc2eda9354f: Verifying Checksum
4bc2eda9354f: Download complete
4f2fc846f636: Verifying Checksum
4f2fc846f636: Download complete
b85a868b505f: Verifying Checksum
b85a868b505f: Download complete
b471a8c3f1d6: Verifying Checksum
b471a8c3f1d6: Download complete
dd5c82065067: Verifying Checksum
dd5c82065067: Download complete
a407a484e74b: Download complete
71f0d0490247: Verifying Checksum
71f0d0490247: Download complete
c79cd3db6e51: Verifying Checksum
c79cd3db6e51: Download complete
8674d43d4892: Verifying Checksum
8674d43d4892: Download complete
81f0d49e568a: Download complete
574e4ed3a819: Verifying Checksum
574e4ed3a819: Download complete
bdb0d3f2b395: Verifying Checksum
bdb0d3f2b395: Download complete
b85a868b505f: Pull complete
4bc2eda9354f: Pull complete
8061492fb0d0: Verifying Checksum
8061492fb0d0: Download complete
a407a484e74b: Pull complete
6d2718751084: Verifying Checksum
6d2718751084: Download complete
cc6fff309142: Pull complete
09be68c4cfd1: Pull complete
4f2fc846f636: Pull complete
b471a8c3f1d6: Pull complete
dd5c82065067: Pull complete
c79cd3db6e51: Pull complete
71f0d0490247: Pull complete
8674d43d4892: Pull complete
574e4ed3a819: Pull complete
81f0d49e568a: Pull complete
6d2718751084: Pull complete
8061492fb0d0: Pull complete
bdb0d3f2b395: Pull complete
Digest: sha256:d370b82042aace3f1dc24e23066f8ae12d6afd2190425d9db9dcc43fb4c5b10e
Status: Downloaded newer image for gcr.io/datcom-ci/node:2025-10-01
gcr.io/datcom-ci/node:2025-10-01
+ ./build/node/load_preinstalled_modules.sh
+ ./run_test.sh -l
### Running lint
datacommons.org@1.0.0 /workspace/static
+-- @typescript-eslint/eslint-plugin@5.30.7
| +-- @typescript-eslint/type-utils@5.30.7
| | `-- eslint@7.32.0 deduped
| +-- @typescript-eslint/utils@5.30.7
| | +-- eslint-utils@3.0.0
| | | `-- eslint@7.32.0 deduped
| | `-- eslint@7.32.0 deduped
| `-- eslint@7.32.0 deduped
+-- @typescript-eslint/parser@5.30.7
| `-- eslint@7.32.0 deduped
+-- eslint-config-prettier@6.11.0
| `-- eslint@7.32.0 deduped
+-- eslint-plugin-prettier@3.1.4
| `-- eslint@7.32.0 deduped
+-- eslint-plugin-react-hooks@4.3.0
| `-- eslint@7.32.0 deduped
+-- eslint-plugin-react@7.20.6
| `-- eslint@7.32.0 deduped
+-- eslint-plugin-simple-import-sort@7.0.0
| `-- eslint@7.32.0 deduped
`-- eslint@7.32.0
> datacommons.org@1.0.0 test-lint
> eslint .
/workspace/static/js/apps/base/components/header_bar/header_bar_search.tsx
88:6 warning React Hook useEffect has a missing dependency: 'enableStatVarAutocomplete'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/apps/explore/app.tsx
152:6 warning React Hook useEffect has missing dependencies: 'handleHashChange' and 'props.isDemo'. Either include them or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/apps/explore/autoplay.tsx
107:6 warning React Hook useEffect has a missing dependency: 'props'. Either include it or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect react-hooks/exhaustive-deps
/workspace/static/js/apps/explore/page_overview.tsx
32:10 warning 'isFeatureEnabled' is defined but never used @typescript-eslint/no-unused-vars
/workspace/static/js/apps/explore/result_header_section.tsx
442:6 warning React Hook useEffect has a missing dependency: 'dataCommonsClient.webClient'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/apps/visualization/app_context.tsx
179:6 warning React Hook useEffect has missing dependencies: 'updateContextValue' and 'visType'. Either include them or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/apps/visualization/place_selector.tsx
51:6 warning React Hook useEffect has a missing dependency: 'selectedPlaces'. Either include it or remove the dependency array react-hooks/exhaustive-deps
57:6 warning React Hook useEffect has missing dependencies: 'selectedPlaces' and 'visTypeConfig.singlePlace'. Either include them or remove the dependency array. You can also do a functional update 'setSelectedPlaces(s => ...)' if you only need 'selectedPlaces' in the 'setSelectedPlaces' call react-hooks/exhaustive-deps
/workspace/static/js/apps/visualization/place_type_selector.tsx
43:6 warning React Hook useEffect has a missing dependency: 'selectedPlaceType'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/apps/visualization/selector_pane.tsx
63:6 warning React Hook useEffect has missing dependencies: 'availableSelectors' and 'getSelectors'. Either include them or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/apps/visualization/stat_var_selector.tsx
68:6 warning React Hook useEffect has a missing dependency: 'selectedStatVars'. Either include it or remove the dependency array. You can also do a functional update 'setSelectedStatVars(s => ...)' if you only need 'selectedStatVars' in the 'setSelectedStatVars' call react-hooks/exhaustive-deps
74:6 warning React Hook useEffect has a missing dependency: 'selectedStatVars'. Either include it or remove the dependency array react-hooks/exhaustive-deps
89:6 warning React Hook useEffect has missing dependencies: 'props.selectOnContinue', 'selectedStatVars', and 'visTypeConfig'. Either include them or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/components/nl_search_bar/auto_complete_input.tsx
206:6 warning React Hook useEffect has missing dependencies: 'changeText' and 'inputText'. Either include them or remove the dependency array react-hooks/exhaustive-deps
219:6 warning React Hook useEffect has a missing dependency: 'executeQuery'. Either include it or remove the dependency array react-hooks/exhaustive-deps
314:5 warning React Hook useCallback has a missing dependency: 'props.enableStatVarAutocomplete'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/components/nl_search_bar/nl_search_bar_header_inline.tsx
48:6 warning React Hook useEffect has a missing dependency: 'urlParams'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/components/ranking_unit.tsx
186:25 warning Missing return type on function @typescript-eslint/explicit-function-return-type
189:25 warning Missing return type on function @typescript-eslint/explicit-function-return-type
234:9 warning 'urlFunc' is assigned a value but never used @typescript-eslint/no-unused-vars
/workspace/static/js/components/subject_page/disaster_event_block.tsx
127:6 warning React Hook useEffect has a missing dependency: 'filterSectionHeight'. Either include it or remove the dependency array react-hooks/exhaustive-deps
154:6 warning React Hook useEffect has missing dependencies: 'disasterEventData', 'fetchData', and 'getSpinnerId'. Either include them or remove the dependency array react-hooks/exhaustive-deps
179:6 warning React Hook useEffect has a missing dependency: 'props.id'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/components/tiles/bar_tile.tsx
80:10 warning 'buildExploreUrl' is defined but never used @typescript-eslint/no-unused-vars
757:10 warning 'getExploreLink' is defined but never used @typescript-eslint/no-unused-vars
780:10 warning 'getHyperlinkFn' is defined but never used @typescript-eslint/no-unused-vars
787:9 warning 'placeDcids' is assigned a value but never used @typescript-eslint/no-unused-vars
/workspace/static/js/components/tiles/disaster_event_map_selectors.tsx
79:6 warning React Hook useEffect has a missing dependency: 'updateDateOptions'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/components/tiles/disaster_event_map_tile.tsx
161:6 warning React Hook useEffect has a missing dependency: 'fetchData'. Either include it or remove the dependency array react-hooks/exhaustive-deps
178:6 warning React Hook useEffect has missing dependencies: 'props', 'shouldShowMap', 'svgHeight', and 'zoomParams'. Either include them or remove the dependency array react-hooks/exhaustive-deps
189:6 warning React Hook useEffect has a missing dependency: 'getSvgHeight'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/components/tiles/histogram_tile.tsx
237:7 warning The 'histogramData' array makes the dependencies of useCallback Hook (at line 251) change on every render. To fix this, wrap the initialization of 'histogramData' in its own useMemo() Hook react-hooks/exhaustive-deps
/workspace/static/js/components/tiles/map_tile.tsx
316:6 warning React Hook useCallback has a missing dependency: 'zoomParams'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/components/tiles/ranking_tile.tsx
143:6 warning React Hook useEffect has a missing dependency: 'props.facetSelector'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/components/tiles/scatter_tile.tsx
181:6 warning React Hook useEffect has missing dependencies: 'areDataPropsEqual' and 'props'. Either include them or remove the dependency array react-hooks/exhaustive-deps
203:6 warning React Hook useCallback has a missing dependency: 'areDataPropsEqual'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/components/tiles/top_event_tile.tsx
90:6 warning React Hook useEffect has missing dependencies: 'topEvents' and 'updateEventPlaces'. Either include them or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/import_wizard/components/mapping_section.tsx
120:6 warning React Hook useEffect has a missing dependency: 'props'. Either include it or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect react-hooks/exhaustive-deps
/workspace/static/js/import_wizard/components/mapping_table_header.tsx
59:6 warning React Hook useEffect has missing dependencies: 'editHeaderState.colIdx' and 'onHeaderUpdated'. Either include them or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/import_wizard/components/value_map_section.tsx
61:6 warning React Hook useEffect has a missing dependency: 'props'. Either include it or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect react-hooks/exhaustive-deps
/workspace/static/js/import_wizard2/components/mapping_page.tsx
57:6 warning React Hook useEffect has a missing dependency: 'scrollToPreview'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/import_wizard2/components/upload_page.tsx
62:6 warning React Hook useEffect has a missing dependency: 'processFile'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/place/place_main.tsx
437:6 warning React Hook useEffect has missing dependencies: 'isOverview', 'locale', 'receivedApiResponse', and 'setStorePlaceholderString'. Either include them or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/shared/facet_selector/facet_selector_rich.tsx
365:6 warning React Hook useEffect has missing dependencies: 'facetList', 'props?.facetSelector', and 'useInjectedFacet'. Either include them or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/shared/hooks.ts
64:5 warning React Hook useMemo has a missing dependency: 'rootMargin'. Either include it or remove the dependency array react-hooks/exhaustive-deps
78:24 warning The ref value 'containerRef.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'containerRef.current' to a variable inside the effect, and use that variable in the cleanup function react-hooks/exhaustive-deps
/workspace/static/js/shared/place_selector.tsx
110:6 warning React Hook useEffect has a missing dependency: 'loadChildPlaceTypes'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/shared/stores/query_store_hook.tsx
105:6 warning React Hook useEffect has a missing dependency: 'placeholder'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/stat_var_hierarchy/drawer_resize.tsx
50:5 warning React Hook React.useCallback has missing dependencies: 'setWidth' and 'sidebarRef'. Either include them or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/tools/download/page.tsx
120:6 warning React Hook useEffect has a missing dependency: 'showPreview'. Either include it or remove the dependency array react-hooks/exhaustive-deps
212:6 warning React Hook useEffect has a missing dependency: 'shouldHideSourceSelector'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/tools/download/preview.tsx
62:6 warning React Hook useEffect has a missing dependency: 'getCsvReqPayload'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/tools/map/chart.tsx
41:29 warning 'NamedPlace' is defined but never used @typescript-eslint/no-unused-vars
/workspace/static/js/tools/map/d3_map.tsx
266:6 warning React Hook useEffect has missing dependencies: 'display.value.showMapPoints' and 'draw'. Either include them or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/tools/map/place_options.tsx
71:6 warning React Hook useEffect has a missing dependency: 'placeInfo'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/tools/map/stat_var_chooser.tsx
80:6 warning React Hook useEffect has missing dependencies: 'placeInfo' and 'statVar'. Either include them or remove the dependency array react-hooks/exhaustive-deps
104:6 warning React Hook useEffect has a missing dependency: 'statVar'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/tools/scatter/app.test.tsx
60:6 warning React Hook useEffect has a missing dependency: 'context.place'. Either include it or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/tools/scatter/chart.tsx
129:6 warning React Hook useEffect has missing dependencies: 'props.placeInfo.enclosedPlaceType' and 'props.placeInfo.enclosingPlace.dcid'. Either include them or remove the dependency array react-hooks/exhaustive-deps
172:6 warning React Hook useEffect has a missing dependency: 'replot'. Either include it or remove the dependency array react-hooks/exhaustive-deps
186:6 warning React Hook useEffect has a missing dependency: 'statVars'. Either include it or remove the dependency array react-hooks/exhaustive-deps
186:7 warning React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
186:20 warning React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
/workspace/static/js/tools/scatter/chart_loader.tsx
362:6 warning React Hook useEffect has missing dependencies: 'cache', 'isLoading', 'x', and 'y'. Either include them or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/tools/scatter/statvar.tsx
94:6 warning React Hook useEffect has missing dependencies: 'place.value.enclosedPlaceType' and 'place.value.enclosingPlace.dcid'. Either include them or remove the dependency array react-hooks/exhaustive-deps
139:6 warning React Hook useEffect has missing dependencies: 'x' and 'y'. Either include them or remove the dependency array react-hooks/exhaustive-deps
/workspace/static/js/tools/shared/place_selector/enclosed_places_selector.tsx
99:6 warning React Hook useEffect has missing dependencies: 'childPlaceTypes' and 'props'. Either include them or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect react-hooks/exhaustive-deps
106:6 warning React Hook useEffect has a missing dependency: 'props'. Either include it or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect react-hooks/exhaustive-deps
/workspace/static/js/tools/shared/stat_var_widget.tsx
127:6 warning React Hook useEffect has a missing dependency: 'props'. Either include it or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect react-hooks/exhaustive-deps
/workspace/static/js/utils/click_alerter.ts
42:6 warning React Hook useEffect has a missing dependency: 'callbackFunction'. Either include it or remove the dependency array. If 'callbackFunction' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
68:6 warning React Hook useEffect has a missing dependency: 'callbackFunction'. Either include it or remove the dependency array. If 'callbackFunction' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
✖ 71 problems (0 errors, 71 warnings)
+ ./run_test.sh -b
### Build client-side packages
added 7 packages, and changed 8 packages in 1s
26 packages are looking for funding
run `npm fund` for details
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'cliui@9.0.1',
npm WARN EBADENGINE required: { node: '>=20' },
npm WARN EBADENGINE current: { node: 'v18.4.0', npm: '8.12.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'yargs@18.0.0',
npm WARN EBADENGINE required: { node: '^20.19.0 || ^22.12.0 || >=23' },
npm WARN EBADENGINE current: { node: 'v18.4.0', npm: '8.12.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'yargs-parser@22.0.0',
npm WARN EBADENGINE required: { node: '^20.19.0 || ^22.12.0 || >=23' },
npm WARN EBADENGINE current: { node: 'v18.4.0', npm: '8.12.1' }
npm WARN EBADENGINE }
added 23 packages, removed 16 packages, and changed 73 packages in 4s
73 packages are looking for funding
run `npm fund` for details
added 48 packages, removed 601 packages, and changed 154 packages in 14s
271 packages are looking for funding
run `npm fund` for details
> datacommons.org@1.0.0 dev-build
> wireit
Analyzing
0% [0 / 3] [2 running] ../packages/web-components:build
33% [1 / 3] [1 running] ../packages/client:build
#### Building webpack in development mode
assets by path �[1m�[32m*.js�[39m�[22m 150 MiB 79 assets
assets by path �[1m�[32mimages/�[39m�[22m 19.2 MiB 48 assets
assets by path �[1m�[32mcustom_dc/�[39m�[22m 4.5 MiB 41 assets
assets by path �[1m�[32mcss/�[39m�[22m 11.2 MiB 38 assets
assets by path �[1m�[32msitemap/*.txt�[39m�[22m 79.6 MiB 34 assets
assets by path �[1m�[32mdata/�[39m�[22m 1.28 MiB
asset �[1m�[32mdata/factcheck/fact_checks_20190605.txt.gz�[39m�[22m 656 KiB �[1m�[32m[emitted]�[39m�[22m [from: data/factcheck/fact_checks_20190605.txt.gz] �[1m�[32m[copied]�[39m�[22m
+ 2 assets
assets by path �[1m�[32mfonts/*.ttf�[39m�[22m 308 KiB
asset �[1m�[32mfonts/GoogleSans-Medium.ttf�[39m�[22m 154 KiB �[1m�[32m[emitted]�[39m�[22m [from: fonts/GoogleSans-Medium.ttf] �[1m�[32m[copied]�[39m�[22m
asset �[1m�[32mfonts/GoogleSans-Regular.ttf�[39m�[22m 154 KiB �[1m�[32m[emitted]�[39m�[22m [from: fonts/GoogleSans-Regular.ttf] �[1m�[32m[copied]�[39m�[22m
assets by path �[1m�[32m*.ico�[39m�[22m 100 KiB
asset �[1m�[32msustain_favicon.ico�[39m�[22m 98.9 KiB �[1m�[32m[emitted]�[39m�[22m [from: sustain_favicon.ico] �[1m�[32m[copied]�[39m�[22m
asset �[1m�[32mold_favicon.ico�[39m�[22m 1.12 KiB �[1m�[32m[emitted]�[39m�[22m [from: old_favicon.ico] �[1m�[32m[copied]�[39m�[22m
asset �[1m�[32mrobots.txt�[39m�[22m 2.08 KiB �[1m�[32m[emitted]�[39m�[22m [from: robots.txt] �[1m�[32m[copied]�[39m�[22m
runtime modules 239 KiB 404 modules
orphan modules 467 KiB �[1m�[33m[orphan]�[39m�[22m 278 modules
javascript modules 9.99 MiB
modules by path �[1m./node_modules/�[39m�[22m 7 MiB 1375 modules
modules by path �[1m./js/�[39m�[22m 2.54 MiB 547 modules
modules by path �[1m./css/�[39m�[22m 224 KiB 38 modules
modules by path �[1m./library/*.ts�[39m�[22m 79.2 KiB 14 modules
+ 6 modules
json modules 747 KiB
optional modules 582 KiB �[1m�[33m[optional]�[39m�[22m 35 modules
modules by path �[1m./js/apps/�[39m�[22m 125 KiB 4 modules
modules by path �[1m./js/import_wizard/�[39m�[22m 37.8 KiB
�[1m./js/import_wizard/utils/country_mappings.json�[39m�[22m 30.7 KiB �[1m�[33m[built]�[39m�[22m �[1m�[33m[code generated]�[39m�[22m
�[1m./js/import_wizard/utils/state_mappings.json�[39m�[22m 7.14 KiB �[1m�[33m[built]�[39m�[22m �[1m�[33m[code generated]�[39m�[22m
�[1m./js/i18n/compiled-lang/en/units.json�[39m�[22m 2.07 KiB �[1m�[33m[built]�[39m�[22m �[1m�[33m[code generated]�[39m�[22m
webpack 5.94.0 compiled �[1m�[32msuccessfully�[39m�[22m in 151769 ms
✅ Ran 3 scripts and skipped 0 in 163.5s.
+ ./run_test.sh -c
### Running client tests
up to date in 504ms
26 packages are looking for funding
run `npm fund` for details
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'cliui@9.0.1',
npm WARN EBADENGINE required: { node: '>=20' },
npm WARN EBADENGINE current: { node: 'v18.4.0', npm: '8.12.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'yargs@18.0.0',
npm WARN EBADENGINE required: { node: '^20.19.0 || ^22.12.0 || >=23' },
npm WARN EBADENGINE current: { node: 'v18.4.0', npm: '8.12.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'yargs-parser@22.0.0',
npm WARN EBADENGINE required: { node: '^20.19.0 || ^22.12.0 || >=23' },
npm WARN EBADENGINE current: { node: 'v18.4.0', npm: '8.12.1' }
npm WARN EBADENGINE }
up to date in 1s
73 packages are looking for funding
run `npm fund` for details
changed 1 package in 4s
271 packages are looking for funding
run `npm fund` for details
> datacommons.org@1.0.0 test
> wireit
Analyzing
0% [0 / 3] [2 running] ../packages/client:build
33% [1 / 3] [1 running] ../packages/client:build
67% [2 / 3] [1 running] test
PASS js/import_wizard2/utils/obs_generation.test.tsx (16.188 s)
✓ GenerateRowObservations_SingleValueColumn (7 ms)
✓ GenerateRowObservations_SingleValueColumn_UnitInColumn (2 ms)
✓ GenerateRowObservations_SingleValueColumn_ValueMap (2 ms)
✓ GenerateRowObservations_DateValuesInHeader (2 ms)
✓ GenerateRowObservations_DateValuesInHeader_ValueMap (2 ms)
✓ GenerateRowObservations_DateValuesInHeader_UnitsInColumns (2 ms)
PASS js/import_wizard/utils/detect_place.test.tsx (16.354 s)
✓ placeTypesAndProperties (27 ms)
✓ supportedPlaceTypeProperties (5 ms)
✓ placeDetectionKeys (2 ms)
✓ countries (7 ms)
✓ States (7 ms)
✓ placeLowConfidenceDetection (7 ms)
✓ detectionLowConf (4 ms)
✓ countryHighConf (5 ms)
✓ stateHighConf (9 ms)
✓ placeDetection (8 ms)
✓ countryNumericVsStateFIPS (2 ms)
PASS js/import_wizard/utils/obs_generation.test.tsx
✓ GenerateRowObservations_SingleValueColumn (6 ms)
✓ GenerateRowObservations_SingleValueColumn_UnitInColumn (2 ms)
✓ GenerateRowObservations_SingleValueColumn_ValueMap (1 ms)
✓ GenerateRowObservations_DateValuesInHeader (1 ms)
✓ GenerateRowObservations_DateValuesInHeader_ValueMap (1 ms)
✓ GenerateRowObservations_DateValuesInHeader_UnitsInColumns (1 ms)
PASS js/utils/tests/disaster_event_map_utils.test.ts (18.862 s)
✓ fetch date list for all disasters (68 ms)
✓ fetch date list for single disaster multiple event types (61 ms)
✓ fetch date list for single eventType (16 ms)
✓ fetch data for single disaster multiple events with date as YYYY-MM (30 ms)
✓ fetch data for single disaster multiple events with date as YYYY (17 ms)
✓ fetch data for single event with date as YYYY-MM (15 ms)
✓ fetch data for single event with date as YYYY (47 ms)
✓ getMapPointsData (1 ms)
PASS js/import_wizard2/utils/file_generation.test.ts
✓ generateTranslationMetadataJson (5 ms)
✓ shouldGenerateCsv (11 ms)
✓ generateCsvNoValueMap (93 ms)
✓ generateCsvWithValueMap (3 ms)
✓ generateCsvDiffHeaderAndDataRows (3 ms)
console.error
ModuleNotFoundError: Cannot find module '../i18n/compiled-lang/en/stats_var_labels.json' from 'js/tools/timeline/data_fetcher.test.ts'
at Resolver._throwModNotFoundError (/workspace/static/node_modules/jest-resolve/build/resolver.js:491:11)
at Resolver.resolveModule (/workspace/static/node_modules/jest-resolve/build/resolver.js:413:10)
at Resolver._getVirtualMockPath (/workspace/static/node_modules/jest-resolve/build/resolver.js:733:14)
at Resolver._getAbsolutePath (/workspace/static/node_modules/jest-resolve/build/resolver.js:690:14)
at Resolver.getModuleID (/workspace/static/node_modules/jest-resolve/build/resolver.js:617:31)
at Runtime._shouldMockCjs (/workspace/static/node_modules/jest-runtime/build/index.js:1984:37)
at Runtime.requireModuleOrMock (/workspace/static/node_modules/jest-runtime/build/index.js:1242:14)
at /workspace/static/js/tools/timeline/data_fetcher.test.ts:251:51
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 0) {
code: 'MODULE_NOT_FOUND',
hint: '',
requireStack: undefined,
siblingWithSimilarExtensionFound: false,
moduleName: '../i18n/compiled-lang/en/stats_var_labels.json',
_originalMessage: "Cannot find module '../i18n/compiled-lang/en/stats_var_labels.json' from 'js/tools/timeline/data_fetcher.test.ts'"
}
60 | })
61 | .catch((err) => {
> 62 | console.error(err);
| ^
63 | intl = createIntl({ locale, messages: {} }, intlCache);
64 | });
65 | }
at js/i18n/i18n.tsx:62:15
PASS js/tools/timeline/data_fetcher.test.ts (19.964 s)
✓ fetch raw data (135 ms)
✓ get stats data with state code (3 ms)
✓ get stats data where latest date with data for all stat vars is not the latest date (2 ms)
✓ get stats data where there is no date with data for all stat vars (34 ms)
✓ get stats data with per capita with population size 0 (2 ms)
✓ get stats data with Per capita with specified denominators (2 ms)
✓ get stats data with per capita with specified denominators - missing place data (2 ms)
✓ get stat data with specified source (1 ms)
✓ StatsData test (1 ms)
✓ convert to delta (31 ms)
✓ transform from models - multiple places (2 ms)
✓ transform from models - multiple obs periods (2 ms)
PASS js/import_wizard/utils/heuristics.test.tsx
✓ countryDetection (8 ms)
✓ countryDetection-twocolumns (4 ms)
✓ countryDetectionOrder (7 ms)
✓ dateDetection-headers (2 ms)
✓ dateDetection-columns (2 ms)
✓ dateDetection-headers-columns (2 ms)
✓ comboDetection-date-and-place (3 ms)
PASS js/import_wizard2/utils/detection.test.tsx
✓ jsonParsingPlaceDateColumns (8 ms)
✓ jsonParsingPlaceDateHeaders (3 ms)
✓ jsonParsingPlaceSkippedDateCorrect (7 ms)
✓ jsonParsingPlaceCorrectDateSkipped (2 ms)
✓ jsonParsingAllSkipped (1 ms)
✓ jsonParsingColumnIncorrect (1 ms)
✓ jsonParsingPropIncorrect
✓ jsonParsingTypeIncorrect (1 ms)
✓ jsonParsingSupportedTypePropertiesAllSkipped
✓ jsonParsingSupportedTypePropertiesCorrect (1 ms)
PASS js/import_wizard/utils/tmcf_generation.test.tsx
✓ SingleNodeTMCF (4 ms)
✓ MultiNodeTMCF_DateValueInHeader (1 ms)
✓ MultiNodeTMCF_PlaceValueInHeader (1 ms)
✓ MultiNodeTMCF_PlaceValueInHeader_DiffPlaceTypes (1 ms)
✓ SingleNodeTMCFWithUnitColumnConstant (39 ms)
✓ MultiNodeTMCF_UnitAsSomeColumnConstants (1 ms)
PASS js/apps/visualization/redirect_utils.test.ts
redirect_utils
getStandardizedToolUrl
✓ should return correct url for landing page should redirect to map tool (16 ms)
✓ should return correct url for empty hash should redirect to map tool (18 ms)
✓ should return correct url for map landing page should redirect to map tool (4 ms)
✓ should return correct url for when redirecting to the map tool, ignore invalid hash parameters (5 ms)
✓ should return correct url for map chart with place, place type, and variable (6 ms)
✓ should return correct url for map chart with place, place type, variable, and per capita is on (6 ms)
✓ should return correct url for unencoded map chart with place, place type, variable, and per capita (4 ms)
✓ should return correct url for scatter landing page should redirect to scatter tool (3 ms)
✓ should return correct url for when redirecting to the scatter tool, ignore invalid hash parameters (4 ms)
✓ should return correct url for scatter chart with place, place type, and 2 variables, with per capita on Y axis (20 ms)
✓ should return correct url for scatter chart with place, place type, and 2 variables, with per capita on both axes (6 ms)
✓ should return correct url for scatter chart with log scale, quadrants, and labels on (6 ms)
✓ should return correct url for unencoded scatter chart with log scale, quadrants, and labels on (6 ms)
✓ should return correct url for timeline landing page should redirect to timeline tool (2 ms)
✓ should return correct url for when redirecting to the timeline tool, ignore invalid hash parameters (10 ms)
✓ should return correct url for timeline chart with one place and multiple variables (28 ms)
✓ should return correct url for timeline chart with one variable and multiple places (5 ms)
✓ should return correct url for unencoded timeline chart with one variable and multiple places (3 ms)
getVisTypeFromHash
✓ should return "map" for an empty hash (1 ms)
✓ should return "map" for a hash with no params
✓ should return "scatter" for a scatter visType (1 ms)
✓ should return "timeline" for a timeline visType (1 ms)
✓ should return "map" for a map visType
✓ should return "timeline" for visType is the last hash parameter (1 ms)
✓ should return "scatter" for visType is the a middle hash parameter (1 ms)
✓ should return "map" for an invalid visType should default to map (1 ms)
PASS js/import_wizard/utils/file_generation.test.ts
✓ generateTranslationMetadataJson (6 ms)
✓ shouldGenerateCsv (2 ms)
✓ generateCsvNoValueMap (22 ms)
✓ generateCsvWithValueMap (3 ms)
PASS js/utils/tests/chart_csv_utils.test.ts
✓ dataGroupsToCsv (7 ms)
✓ scatterDataToCsv (3 ms)
✓ dataPointsToCsv (1 ms)
✓ mapDataToCsv (2 ms)
✓ rankingPointsToCsv (1 ms)
PASS js/i18n/i18n.test.ts
✓ formatNumber (245 ms)
✓ translateUnit (20 ms)
✓ formatDate (22 ms)
PASS js/import_wizard2/utils/tmcf_generation.test.tsx
✓ SingleNodeTMCF (5 ms)
✓ MultiNodeTMCF_DateValueInHeader (1 ms)
✓ MultiNodeTMCF_PlaceValueInHeader (1 ms)
✓ SingleNodeTMCFWithUnitColumnConstant (1 ms)
✓ MultiNodeTMCF_UnitAsSomeColumnConstants (1 ms)
PASS js/apps/eval_retrieval_generation/util.test.ts
✓ processText (6 ms)
PASS js/utils/tests/data_fetch_utils.test.ts
✓ getBestUnit (3 ms)
✓ getPoint no align (29 ms)
✓ getPoint align (3 ms)
✓ getPointWithin no align (3 ms)
✓ getPointWithin (3 ms)
PASS js/import_wizard2/utils/validation.test.tsx
✓ Fail_MalformedMappingVal (5 ms)
✓ Fail_MissingRequiredPropsAndMultipleColumnHeaders (1 ms)
✓ Fail_ValueMissing (1 ms)
✓ Fail_NullInColumnHeaderValue (1 ms)
✓ Fail_DuplicateColumnHeaderValue (1 ms)
✓ Pass_DateInColumnHeader (1 ms)
✓ Pass_NoColumnHeader
PASS js/stat_var_hierarchy/stat_var_search.test.tsx (5.207 s)
✓ getResultCountString (33 ms)
StatVarHierarchySearch Component
✓ Should not show the "Load More Results" button when less than MAX_INITIAL_RESULTS are returned (127 ms)
✓ Should show the "Load More Results" button when exactly MAX_INITIAL_RESULTS are returned (172 ms)
✓ Should load up to MAX_TOTAL_RESULTS and remove the button when the Load More button is clicked (455 ms)
PASS js/import_wizard/utils/validation.test.tsx
✓ Fail_MalformedMappingVal (17 ms)
✓ Fail_MissingRequiredPropsAndMultipleColumnHeaders (1 ms)
✓ Fail_ValueMissing (1 ms)
✓ Fail_MissingPlaceProperties (1 ms)
✓ Pass_DateInColumnHeader (1 ms)
✓ Pass_NoColumnHeader (1 ms)
PASS js/biomedical/disease/data_processing_utils.test.tsx
✓ getDiseaseGeneAssociation (4 ms)
✓ getDiseaseSymptomAssociation (2 ms)
✓ getCompoundDiseaseTreatment (1 ms)
✓ getCompoundDiseaseContraindication (1 ms)
✓ getDiseaseCommonName (1 ms)
PASS js/chart/base.test.ts
✓ minOfNullValues (3 ms)
✓ shouldFillInValues (13 ms)
wrap tests
✓ wraps ab-d e f (40 ms)
✓ wraps a-b c (7 ms)
✓ wraps a b-c (6 ms)
✓ wraps a-b c (6 ms)
✓ wraps New York, NY (6 ms)
✓ wraps Queens, NY (5 ms)
✓ wraps Queens-NY (6 ms)
✓ wraps United-States-of-America (10 ms)
✓ wraps United States of America (5 ms)
✓ wraps United States of America (5 ms)
✓ wraps アメリカ合衆国 (3 ms)
✓ wraps ブロンクス区, ニューヨーク州 (20 ms)
✓ wraps ニューヨーク, ニューヨーク州 (7 ms)
PASS js/biomedical/protein/data_processing_utils.test.tsx (32.271 s)
✓ getTissueScore (6 ms)
✓ getProteinInteraction (2 ms)
✓ getDiseaseGeneAssoc (4 ms)
✓ getVarGeneAssoc (10 ms)
✓ getVarTypeAssoc (12 ms)
✓ getVarSigAssoc (8 ms)
✓ getChemicalGeneAssoc (4 ms)
PASS js/shared/feature_flags/util.test.ts
isFeatureEnabled
✓ returns true when enable param is present (4 ms)
✓ returns false when different URL params are present (1 ms)
✓ returns false when no URL params are present (1 ms)
✓ returns true when multiple features are enabled (2 ms)
✓ returns true when feature flag is enabled in FEATURE_FLAGS (1 ms)
✓ returns false when feature flag is disabled in FEATURE_FLAGS (1 ms)
✓ returns false when disable param is present (1 ms)
✓ keyword in url but not as a query parameter does not override (1 ms)
✓ returns true when rollout percentage is 100 (1 ms)
✓ returns false when rollout percentage is 0 (1 ms)
PASS js/tools/map/util.test.ts
✓ updateHashPlaceInfo (5 ms)
✓ updateHashStatVarInfo
✓ updateHashDisplay (1 ms)
✓ applyHashPlaceInfo (2 ms)
✓ applyHashStatVarInfo (1 ms)
✓ applyHashDisplay (2 ms)
✓ get time slider dates (1 ms)
PASS js/tools/shared_util.test.ts
✓ getMatchingObservation (6 ms)
✓ shouldShowMapBoundaries (1 ms)
✓ toTitleCase (1 ms)
✓ compute ratio (1 ms)
✓ compute ratio not aligned (1 ms)
PASS js/tools/timeline/util.test.ts
✓ test getTokensFromUrl (7 ms)
✓ test setTokensToUrl (3 ms)
✓ test addToken (2 ms)
✓ test removeToken (2 ms)
✓ get chart option (11 ms)
✓ set chart option (9 ms)
PASS js/tools/scatter/util.test.ts
✓ updateHash (7 ms)
✓ applyHash (6 ms)
console.error
Error loading facets for selection.
498 | this.setState({ facetList, facetListLoading: false });
499 | } catch {
> 500 | console.error("Error loading facets for selection.");
| ^
501 | this.setState({ facetListLoading: false, facetListError: true });
502 | }
503 | }
at console.error (node_modules/@testing-library/react/dist/act-compat.js:52:34)
at Chart.enrichFacets (js/tools/timeline/chart.tsx:500:15)
console.error
Error loading facets for selection.
498 | this.setState({ facetList, facetListLoading: false });
499 | } catch {
> 500 | console.error("Error loading facets for selection.");
| ^
501 | this.setState({ facetListLoading: false, facetListError: true });
502 | }
503 | }
at Chart.enrichFacets (js/tools/timeline/chart.tsx:500:15)
console.error
Error loading facets for selection.
498 | this.setState({ facetList, facetListLoading: false });
499 | } catch {
> 500 | console.error("Error loading facets for selection.");
| ^
501 | this.setState({ facetListLoading: false, facetListError: true });
502 | }
503 | }
at Chart.enrichFacets (js/tools/timeline/chart.tsx:500:15)
console.error
Error loading facets for selection.
498 | this.setState({ facetList, facetListLoading: false });
499 | } catch {
> 500 | console.error("Error loading facets for selection.");
| ^
501 | this.setState({ facetListLoading: false, facetListError: true });
502 | }
503 | }
at Chart.enrichFacets (js/tools/timeline/chart.tsx:500:15)
console.error
Error loading facets for selection.
498 | this.setState({ facetList, facetListLoading: false });
499 | } catch {
> 500 | console.error("Error loading facets for selection.");
| ^
501 | this.setState({ facetListLoading: false, facetListError: true });
502 | }
503 | }
at Chart.enrichFacets (js/tools/timeline/chart.tsx:500:15)
PASS js/shared/stats_var_labels.test.ts
✓ stats var label: marked for translation (169 ms)
✓ stats var label: compiled to en (96 ms)
✓ stats var label: compiled to es (64 ms)
PASS js/tools/timeline/page.test.tsx (15.566 s)
✓ Single place and single stat var (982 ms)
✓ statVar not in PV-tree (154 ms)
✓ chart options (362 ms)
PASS js/tools/download/page.test.tsx (12.603 s)
✓ Loading options from URL (501 ms)
✓ Manually updating options (678 ms)
PASS js/utils/tests/tile_utils.test.ts
✓ formatString (3 ms)
✓ getStatVarName (4 ms)
PASS js/shared/stats_var_titles.test.ts
✓ stats var label: marked for translation (89 ms)
✓ stats var label: compiled to en (61 ms)
✓ stats var label: compiled to es (58 ms)
console.error
Error: Not implemented: navigation (except hash changes)
at module.exports (/workspace/static/node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/browser/not-implemented.js:9:17)
at navigateFetch (/workspace/static/node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/living/window/navigation.js:77:3)
at exports.navigate (/workspace/static/node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/living/window/navigation.js:55:3)
at Timeout._onTimeout (/workspace/static/node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js:81:7)
at listOnTimeout (node:internal/timers:564:17)
at processTimers (node:internal/timers:507:7) {
type: 'not implemented'
}
at VirtualConsole.<anonymous> (node_modules/jest-environment-jsdom/build/index.js:70:23)
PASS js/utils/tests/search_utils.test.tsx
✓ getHighlightedJSX (36 ms)
PASS js/import_wizard/utils/detect_date.test.tsx
✓ dateDetectionBasics (3 ms)
✓ dateHeaderDetectionBasics (2 ms)
✓ dateColumnDetection (2 ms)
console.error
Warning: An update to Dialog inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at Dialog (/workspace/static/js/components/elements/dialog/dialog.tsx:292:3)
at FacetSelectorSimple (/workspace/static/js/shared/facet_selector/facet_selector_simple.tsx:86:3)
at FacetSelector
at div
at /workspace/static/node_modules/@emotion/react/dist/emotion-element-832b737b.browser.cjs.js:71:23
at ToolChartHeader (/workspace/static/js/tools/shared/vis_tools/tool_chart_header.tsx:66:26)
at ThemeProvider (/workspace/static/node_modules/@emotion/react/dist/emotion-element-832b737b.browser.cjs.js:111:32)
361 | if (fadeOutDuration > 0) {
362 | closeTimeoutRef.current = window.setTimeout(() => {
> 363 | setIsClosing(false);
| ^
364 | closeTimeoutRef.current = null;
365 | }, fadeOutDuration);
366 | } else {
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at dispatchAction (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at js/components/elements/dialog/dialog.tsx:363:13
console.error
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
at Dialog (/workspace/static/js/components/elements/dialog/dialog.tsx:292:3)
at FacetSelectorSimple (/workspace/static/js/shared/facet_selector/facet_selector_simple.tsx:86:3)
at FacetSelector
at div
at /workspace/static/node_modules/@emotion/react/dist/emotion-element-832b737b.browser.cjs.js:71:23
at ToolChartHeader (/workspace/static/js/tools/shared/vis_tools/tool_chart_header.tsx:66:26)
at ThemeProvider (/workspace/static/node_modules/@emotion/react/dist/emotion-element-832b737b.browser.cjs.js:111:32)
361 | if (fadeOutDuration > 0) {
362 | closeTimeoutRef.current = window.setTimeout(() => {
> 363 | setIsClosing(false);
| ^
364 | closeTimeoutRef.current = null;
365 | }, fadeOutDuration);
366 | } else {
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnAboutUpdateOnUnmountedFiberInDEV (node_modules/react-dom/cjs/react-dom.development.js:23914:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom.development.js:21840:5)
at dispatchAction (node_modules/react-dom/cjs/react-dom.development.js:16139:5)
at js/components/elements/dialog/dialog.tsx:363:13
PASS js/shared/ga_events.test.tsx (40.209 s)
test ga event tool chart plot
✓ call gtag when a map tool chart is mounted or updated with different stat vars or places (161 ms)
✓ call gtag when a timeline tool chart is mounted or updated with different stat vars or places (117 ms)
✓ call gtag when a scatter tool chart is mounted or updated with different stat vars or places (92 ms)
test ga event tool stat var click
✓ call gtag when a stat var is selected in the stat var hierarchy (130 ms)
test ga event tool place add
✓ call gtag when a place is added in the place search bar (53 ms)
test ga event tool stat var search no result
✓ call gtag when no result is shown to search term in stat var hierarchy (320 ms)
test ga event tool chart plot option
✓ call gtag when timeline tool chart option is clicked (58 ms)
✓ call gtag when scatter tool chart option is clicked (84 ms)
✓ call gtag when map tool chart option is clicked (24 ms)
test ga event for the FacetSelector component
✓ triggers GA event when FacetSelector's update button is clicked (147 ms)
test ga event for Related Topics experiment
✓ triggers GA event when FollowUpQuestion URL is clicked (287 ms)
✓ triggers GA event when Header Related Topics URL is clicked (18 ms)
✓ triggers GA event when FollowUpQuestion component is viewed (19 ms)
✓ triggers GA event when Header RelatedTopics component is viewed (13 ms)
✓ triggers GA event when Follow Up Questions component renders questions (21 ms)
test ga event for Page Overview experiment
✓ triggers GA event when Page Overview component is rendered (9 ms)
✓ triggers GA event when Page Overview component is initially viewed (23 ms)
✓ triggers GA event when Page Overview is viewed twice (41 ms)
✓ triggers GA event before unload, recording the view time of Page Overview (24 ms)
✓ triggers GA event when Page Overview link is clicked (20 ms)
✓ triggers GA event when Page Overview link is clicked twice (24 ms)
✓ triggers GA event when Page Overview loads counting anchor elements (19 ms)
PASS js/utils/tests/url_utils.test.ts
getUpdatedHash
✓ updates single param and removes others (6 ms)
✓ removes param if value is empty string (2 ms)
✓ adds new param (3 ms)
✓ persists only PARAMS_TO_PERSIST (2 ms)
✓ removes all except persisted and new (9 ms)
✓ works with empty hash (2 ms)
PASS js/utils/tests/string_utils.test.ts
✓ get common prefix (11 ms)
✓ formatDate (3 ms)
✓ is valid date (3 ms)
PASS js/tools/scatter/app.test.tsx (40.686 s)
✓ all functionalities (2227 ms)
PASS js/i18n/i18n.periodicity.test.ts
✓ humanizeIsoDuration with English defaults (25 ms)
PASS js/tools/shared/metadata/tile_metadata_modal.test.tsx
TileMetadataModal - error path
✓ shows error message and hides copy citation when metadata fetch fails (185 ms)
PASS js/utils/tests/app/disaster_dashboard_utils.test.ts
✓ getFilteredParentPlaces (5 ms)
PASS js/stat_var_hierarchy/stat_var_section.test.tsx
✓ getPrefix (10 ms)
PASS js/import_wizard/utils/file_processing.test.ts
✓ processValueMapFile (6 ms)
PASS js/components/tiles/bar_tile.test.tsx (9.198 s)
BarTile
✓ Bar tile with non-place entities should render (479 ms)
PASS nodejs_server/query.test.ts (25.969 s)
✓ getQueryResult (65 ms)
✓ getQueryResult with surface (22 ms)
PASS js/tools/stat_var/dataset_selector.test.tsx
DatasetSelector
✓ renders the component with initial props (32 ms)
✓ calls updateHash when a new source is selected (6 ms)
✓ calls updateHash when a new dataset is selected (10 ms)
PASS nodejs_server/tiles/utils.test.ts
✓ compress and decompress chart props (7 ms)
PASS js/chart/draw.test.ts
✓ svg test (23 ms)
✓ get dashes (2 ms)
PASS js/shared/util.test.ts
✓ isDateTooFar (4 ms)
✓ getCappedStatVarDate (3 ms)
PASS js/utils/tests/stat_metadata_utils.test.ts
✓ getUnit (4 ms)
PASS js/utils/tests/subject_page_utils.test.ts
✓ get relLink (3 ms)
PASS js/browser/types.test.ts
✓ getPageDisplayType (4 ms)
PASS js/utils/tests/axios.test.ts
✓ stringfy url params (6 ms)
PASS js/utils/tests/place_utils.test.ts
✓ get place names (27 ms)
PASS js/import_wizard2/templates.test.tsx
✓ all templates options should have mapping sections (2 ms)
Test Suites: 55 passed, 55 total
Tests: 265 passed, 265 total
Snapshots: 9 passed, 9 total
Time: 45.927 s
Ran all test suites.
✅ Ran 3 scripts and skipped 0 in 57.3s.
PUSH
DONE
Loading