Skip to content

chore(tests): Flush promises before running test#174

Merged
Tobbe merged 1 commit into
mainfrom
tobbe-chore-ci-test-promise-flush-workaround
Jul 6, 2025
Merged

chore(tests): Flush promises before running test#174
Tobbe merged 1 commit into
mainfrom
tobbe-chore-ci-test-promise-flush-workaround

Conversation

@Tobbe

@Tobbe Tobbe commented Jul 6, 2025

Copy link
Copy Markdown
Member

Trying to work around this error in our CI

image

Discussion here: vitest-dev/vitest#6511
Original issue on vitest: vitest-dev/vitest#6479

@Tobbe Tobbe added this to the chore milestone Jul 6, 2025
@Tobbe Tobbe added the release:chore This PR is a chore (means nothing for users) label Jul 6, 2025
@netlify

netlify Bot commented Jul 6, 2025

Copy link
Copy Markdown

Deploy Preview for cedarjs canceled.

Name Link
🔨 Latest commit 6e548bf
🔍 Latest deploy log https://app.netlify.com/projects/cedarjs/deploys/686a115e6fd6240008cd8c94

@Tobbe
Tobbe merged commit 0c22c4a into main Jul 6, 2025
52 of 57 checks passed
@Tobbe
Tobbe deleted the tobbe-chore-ci-test-promise-flush-workaround branch July 6, 2025 06:25
@Tobbe

Tobbe commented Jul 9, 2025

Copy link
Copy Markdown
Member Author

It happened again. Still the codemod tests. I wonder if it's only because they're slow, or if they're doing something wrong.

  ✓  setup codemods  src/commands/setup/graphql/features/fragments/__codemod_tests__/appImportTransform.test.ts (2 tests) 2778ms 18 MB heap used
     ✓ fragments possibleTypes import > Default App.tsx  1465ms
     ✓ fragments possibleTypes import > App.tsx with existing import  1306ms
  ⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯
  
  Vitest caught 1 unhandled error during the test run.
  This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
  
  ⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯
  Error: [vitest-worker]: Timeout calling "onTaskUpdate"
   ❯ Object.onTimeoutError ../../node_modules/vitest/dist/chunks/rpc.-pEldfrD.js:53:10
   ❯ Timeout._onTimeout ../../node_modules/vitest/dist/chunks/index.B521nVV-.js:59:62
   ❯ listOnTimeout node:internal/timers:581:17
   ❯ processTimers node:internal/timers:519:7
  
  ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
  
  
   Test Files  79 passed (79)
        Tests  1243 passed (1243)
       Errors  1 error
     Start at  07:19:45
     Duration  170.84s (transform 8.19s, setup 4.20s, collect 89.71s, tests 489.64s, environment 28ms, prepare 15.57s)

Tobbe added a commit that referenced this pull request Jul 13, 2025
Tobbe added a commit that referenced this pull request Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:chore This PR is a chore (means nothing for users)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant