Closed ffMathy closed 6 months ago
Is this perhaps a limitation of workers in general?
In your case the problem is probably because the working directory is different.
We should probably start a new process for every config file, so the working directory is always correct. I also wonder if we can show the notification if too many configs are found snd recommend using the workspace feature instead.
But az
is a globally installed application. It's accessible from anywhere, no matter what directory you're in. It was working before no matter what working directory it was running from.
This has now been resolved. Thanks.
Describe the bug
My local tests are integration tests, that run towards a sandbox AWS environment. For this, they use the AWS Node Credential Provider, which (by default) tries to read your AWS config and retrieve credentials from there.
But my config points to a credential_process, which automatically makes AWS sign in with company-SSO login to AWS, and get a temporary token as needed, when it expires.
More information:
Before v0.5.0, this worked fine. The credential process could spin up (it is invoking the Azure CLI
az
). But now, it says it is no longer found.Reproduction
Install the Azure CLI (
az
) on your machine or any other CLI application. Doesn't matter. It just has to be reachable globally.Make a
jest.global-setup.ts
file that spins up that CLI application. In this example, we are usingaz --version
.Set up your
vitest.workspace.ts
to point to your global setup file:Try to expand a test to discover or run it. You will see this in the
Vitest
output window:System Info
Used Package Manager
pnpm
Validations