Skip to content

How to pass custom CLI arguments to my globalSetup script? #6593

Answered by hi-ogawa
maxpatiiuk asked this question in Q&A
Discussion options

You must be logged in to vote

There were similar requests (the one I remember is on Vite vitejs/vite#16251), but personally it feels unusual to support such custom argument for tools like Vite and Vitest, so probably it's not going forward.

I would imagine your 3rd option (env var) isn't too bad. For pnpm (and probably yarn?), shell emulator provides a uniform env var support https://pnpm.io/cli/run#shell-emulator

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@maxpatiiuk
Comment options

Answer selected by maxpatiiuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants