You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using useTestContext() in a test on a windows environment or CI pipeline together with vitest >= v0.22.0, it will finish all tests but never stop the process itself, leading to hours of CI time that will never finish.
import{fileURLToPath}from'url'import{it,expect}from'vitest'import{setup,useTestContext}from'@nuxt/test-utils'awaitsetup({rootDir: fileURLToPath(newURL('../playground',import.meta.url))})it('should finish on windows',()=>{const_ctx=useTestContext()expect(true).toBe(true)// Tests run but it never finishes})
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Windows_NT
v16.14.0
3.0.0-rc.11
0.5.4
yarn@1.22.17
vite
-
-
-
Reproduction
Minimal repro: https://github.com/manniL/nuxt-test-utils-vitest-windows
Action (cancelled): https://github.com/manniL/nuxt-test-utils-vitest-windows/actions/runs/3160622271/jobs/5145286074
Also: https://github.com/Developmint/nuxt-purgecss/actions/runs/3160440554/jobs/5144897984
Describe the bug
When using
useTestContext()
in a test on a windows environment or CI pipeline together withvitest
>= v0.22.0, it will finish all tests but never stop the process itself, leading to hours of CI time that will never finish.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: