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
and lets say somewhere in scripts/k6.js I have console.log({ __ENV, __VU })
If I have it set up like this, then scripts/k6.js throws errors that __ENV and __VU are undeclared. If I swap the order of the two override sections, it picks up on the globals but then throws warnings that I'm using console.log.
I'm having trouble finding documentation on how exactly the overrides work.
Is there a way I can update the overrides so that scripts/k6.js has both those overrides without having to repeat the noConsoleLog override?
The text was updated successfully, but these errors were encountered:
Discussed in #3166
Originally posted by redbmk June 10, 2024
I'm not sure if this is a bug so starting it out as a discussion.
I expected to be able to add multiple blocks of "overrides" and have items that have multiple matches pick up all of the overrides.
Here's a simplified example of my setup:
and lets say somewhere in
scripts/k6.js
I haveconsole.log({ __ENV, __VU })
If I have it set up like this, then
scripts/k6.js
throws errors that__ENV
and__VU
are undeclared. If I swap the order of the two override sections, it picks up on the globals but then throws warnings that I'm usingconsole.log
.I'm having trouble finding documentation on how exactly the
overrides
work.Is there a way I can update the overrides so that
scripts/k6.js
has both those overrides without having to repeat the noConsoleLog override?The text was updated successfully, but these errors were encountered: