Skip to content

Conversation

@pakb
Copy link
Contributor

@pakb pakb commented Dec 1, 2025

I was able to reproduce some "process is not defined" error, and found out it was possibly linked to importing TS enums inside a Cypress test file. So I've removed some imports and replaced the enum values used by their string counterparts.

Test link

@github-actions github-actions bot added the bug label Dec 1, 2025
@cypress
Copy link

cypress bot commented Dec 1, 2025

web-mapviewer    Run #6182

Run Properties:  status check failed Failed #6182  •  git commit 1b24d6d02c: WIP
Project web-mapviewer
Branch Review fix-PB-2064-fix-ts-error-in-tests
Run status status check failed Failed #6182
Run duration 04m 25s
Commit git commit 1b24d6d02c: WIP
Committer Pascal Barth
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 1
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 54
View all changes introduced in this branch ↗︎

Tests for review

Failed  tests/cypress/tests-e2e/legacyParamImport.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay Screenshots

@sommerfe sommerfe force-pushed the feat-PB-1383-pinia-store branch 2 times, most recently from a1cccff to 9e6d8d7 Compare December 2, 2025 08:43
@pakb pakb force-pushed the fix-PB-2064-fix-ts-error-in-tests branch from bd96796 to b935ad0 Compare December 3, 2025 08:43
I was able to reproduce some "process is not defined" error, and found out it was possibly linked to importing TS enums inside a Cypress test file. So I've removed some imports and replaced the enum values used by their string counterparts.
@pakb pakb force-pushed the fix-PB-2064-fix-ts-error-in-tests branch from 1d27205 to 474fac4 Compare December 3, 2025 13:50
I've some suspicion that Cypress' TS handling is struggling with our enum, so I wanted to test out one CI run without them.

I've also re-ordered a bit some types from the API folder, and from the store.
Icons and Features type are now in a dedicated file (I wanted to test if the import of the whole file was the problem with Cypress, and it looks better organized this way anyway, so why not keep it so)
Store type files are also renamed index.ts, so the import of types looks a bit more logical (and shorter)

I've locked pretter-plugin-jsdoc to the version 1.5.0 as the newer version creates some infinite loop issues
@pakb pakb force-pushed the fix-PB-2064-fix-ts-error-in-tests branch from 9c13f2b to f71c358 Compare December 4, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants