Skip to content

fixing tests/unit/views/AdvancedSearch/AdvancedSearchResultTable.spec.js #7106

fixing tests/unit/views/AdvancedSearch/AdvancedSearchResultTable.spec.js

fixing tests/unit/views/AdvancedSearch/AdvancedSearchResultTable.spec.js #7106

Triggered via push May 28, 2026 09:54
Status Failure
Total duration 2m 50s
Artifacts

unit_tests.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
tests/unit/components/Home/Carousel.spec.js > Carousel > handles tabsData.selectedTab tabs-window v-model updates: node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js#L1574
Error: Cannot call props on an empty VueWrapper. ❯ Object.get node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:1574:27 ❯ tests/unit/components/Home/Carousel.spec.js:53:17
tests/unit/components/Home/Carousel.spec.js > Carousel > handles tabsData.selectedTab tabs v-model updates: node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js#L1574
Error: Cannot call props on an empty VueWrapper. ❯ Object.get node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:1574:27 ❯ tests/unit/components/Home/Carousel.spec.js:45:17
tests/unit/components/Curators/SystemMessages.spec.js > Curator -> SystemMessages.vue > can check confirmDeleteMessage method is success: src/components/Curators/SystemMessages.vue#L322
ReferenceError: store is not defined ❯ Proxy.confirmDeleteMessage src/components/Curators/SystemMessages.vue:322:9 ❯ tests/unit/components/Curators/SystemMessages.spec.js:134:5
tests/unit/components/Curators/SystemMessages.spec.js > Curator -> SystemMessages.vue > can addMessage method is success: src/components/Curators/SystemMessages.vue#L297
ReferenceError: store is not defined ❯ Proxy.addMessage src/components/Curators/SystemMessages.vue:297:9 ❯ tests/unit/components/Curators/SystemMessages.spec.js:105:5
tests/unit/utils/setupUtils.spec.js > Bootstrap & Filters Logic > Global Filters > cleanString > handles camelCase based on current logic: tests/unit/utils/setupUtils.spec.js#L105
AssertionError: expected 'Camel Case' to be 'CamelCase' // Object.is equality Expected: "CamelCase" Received: "Camel Case" ❯ tests/unit/utils/setupUtils.spec.js:105:24
tests/unit/utils/setupUtils.spec.js > Bootstrap & Filters Logic > bootstrapApp() > redirects to /error/500 for generic errors: tests/unit/utils/setupUtils.spec.js#L74
AssertionError: expected "spy" to be called with arguments: [ '/error/500' ] Number of calls: 0 ❯ tests/unit/utils/setupUtils.spec.js:74:30
tests/unit/utils/setupUtils.spec.js > Bootstrap & Filters Logic > bootstrapApp() > commits maintenance mode if API returns 503 Service Unavailable: tests/unit/utils/setupUtils.spec.js#L55
AssertionError: expected "spy" to be called with arguments: [ 'introspection/setMaintenanceMode' ] Number of calls: 0 ❯ tests/unit/utils/setupUtils.spec.js:55:28
tests/unit/utils/setupUtils.spec.js > Bootstrap & Filters Logic > bootstrapApp() > dispatches the 4 required initialization actions on success: tests/unit/utils/setupUtils.spec.js#L35
AssertionError: expected "spy" to be called 4 times, but got 0 times ❯ tests/unit/utils/setupUtils.spec.js:35:30
tests/unit/utils/advancedSearchUtils.spec.js > advancedSearchUtils.js > method uniqueValues should result unique array without duplicate values: tests/unit/utils/advancedSearchUtils.spec.js#L42
TypeError: Cannot assign to read only property 'uniqWith' of object '[object Module]' ❯ tests/unit/utils/advancedSearchUtils.spec.js:42:21
Unhandled error: src/components/Records/Search/Input/AdvancedSearch/QueryBuilderView.vue#L487
TypeError: this.$store.commit is not a function ❯ Proxy.query src/components/Records/Search/Input/AdvancedSearch/QueryBuilderView.vue:487:19 ❯ callWithErrorHandling node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:19 ❯ callWithAsyncErrorHandling node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:207:17 ❯ baseWatchOptions.call node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:877:47 ❯ job node_modules/@vue/reactivity/dist/reactivity.cjs.js:1893:18 ❯ callWithErrorHandling node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33 ❯ flushJobs node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:405:9 ❯ processTicksAndRejections node:internal/process/task_queues:103:5 This error originated in "tests/unit/components/Records/Search/Input/AdvancedSearch/QueryBuilderView.spec.js" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
build
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
build
Failed to parse JSON Final at path "/home/runner/work/fairsharing.github.io/fairsharing.github.io/coverage/coverage-final.json". Line coverage will be empty. To include it, make sure to include the "json" reporter in your vitest execution. Original Error: Error: ENOENT: no such file or directory, open '/home/runner/work/fairsharing.github.io/fairsharing.github.io/coverage/coverage-final.json' at async open (node:internal/fs/promises:640:25) at async readFile (node:internal/fs/promises:1287:14) at async n2 (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:103:2575) at async i2 (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:109:36) at async Jle (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:191:959)