-
-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find a working container runtime strategy #768
Comments
Are you using MSW? I had an issue where MSW was swallowing requests to Docker to create test containers. |
What is MSW? Did you execute the tests as a WSL process? This path here |
MSW is a testing tool. There’s a related issue on their repo here. |
I run docker on WSL, and I executed all the commands on WSL and not Windows, but you're right, the path seems different, I'll verify it again though |
Expected Behaviour
Postgres Container should start
Actual Behaviour
Postgres Container did not start
Testcontainer Logs
Error: Jest: Got error running globalSetup - C:\Users\carbo\Projects\twin-premium-api\Tests\Integration\setup.ts, reason: Could not find a working container runtime strategy
at getContainerRuntimeClient (C:\Users\carbo\Projects\twin-premium-api\node_modules\testcontainers\build\container-runtime\clients\client.js:64:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async PostgreSqlContainer.start (C:\Users\carbo\Projects\twin-premium-api\node_modules\testcontainers\build\generic-container\generic-container.js:54:24)
at async PostgreSqlContainer.start (C:\Users\carbo\Projects\twin-premium-api\node_modules@testcontainers\postgresql\build\postgresql-container.js:34:47)
at async initPostgres (C:\Users\carbo\Projects\twin-premium-api\Tests\Integration\setup.ts:12:22)
at async Promise.all (index 0)
at async init (C:\Users\carbo\Projects\twin-premium-api\Tests\Integration\setup.ts:7:5)
at async C:\Users\carbo\Projects\twin-premium-api\node_modules@jest\core\build\runGlobalHook.js:109:13
at async waitForPromiseWithCleanup (C:\Users\carbo\Projects\twin-premium-api\node_modules@jest\transform\build\ScriptTransformer.js:160:5)
at async ScriptTransformer.requireAndTranspileModule (C:\Users\carbo\Projects\twin-premium-api\node_modules@jest\transform\build\ScriptTransformer.js:808:16)
Steps to Reproduce
Environment Information
The text was updated successfully, but these errors were encountered: