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
Hi,
I am using vitest browser mode in a devcontainer on linux. This means that normally my container has no access to the gpu. Running tests can be easily done via calling xvfb-run vitest to have headless environment and not rely on gpu as long as my devcontainer has it included.
Now I am using vitest dev tools for testing. When i run my test project (using project config for browser tests to separate them from node tests), i would like to call xvfb-run for those browser tests. I am not sure if i can use one of the configs. I tried "vitest.nodeExecArgs": ["xvfb-run"], but this does not work. Is this already possible through other config?
I also need a way that makes this optional, since other users in the repository work with Windows on host instead of devcontainers. Therefore i would probably place it in my user settings. Except there is a way to figure out my environment within vitest.config.ts and have some setting there. The advantage of vitest.config.ts would be, that i can restrict it to the browser project config.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using vitest browser mode in a devcontainer on linux. This means that normally my container has no access to the gpu. Running tests can be easily done via calling
xvfb-run vitestto have headless environment and not rely on gpu as long as my devcontainer has it included.Now I am using vitest dev tools for testing. When i run my test project (using project config for browser tests to separate them from node tests), i would like to call xvfb-run for those browser tests. I am not sure if i can use one of the configs. I tried
"vitest.nodeExecArgs": ["xvfb-run"], but this does not work. Is this already possible through other config?I also need a way that makes this optional, since other users in the repository work with Windows on host instead of devcontainers. Therefore i would probably place it in my user settings. Except there is a way to figure out my environment within vitest.config.ts and have some setting there. The advantage of vitest.config.ts would be, that i can restrict it to the browser project config.
Kind regards
Beta Was this translation helpful? Give feedback.
All reactions