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
In our webapp we are using vite's define for global constants. Unfortunately our tests using these constants are failing because the variables are not defined. Seems like vitest is ignoring everything included in the define context of the vite.config.js.
Do you plan to support that or did i miss something and its already working?
Suggested solution
Parse 'define' part of the vite.config and provide items as constants.
Alternative
Not use define in vite.config
Additional context
if there is anything i can do to support this awesome project please let me know. I'm happy to contribute
Clear and concise description of the problem
In our webapp we are using vite's
define
for global constants. Unfortunately our tests using these constants are failing because the variables are not defined. Seems like vitest is ignoring everything included in the define context of the vite.config.js.Do you plan to support that or did i miss something and its already working?
Suggested solution
Parse 'define' part of the vite.config and provide items as constants.
Alternative
Not use
define
in vite.configAdditional context
if there is anything i can do to support this awesome project please let me know. I'm happy to contribute
Validations
The text was updated successfully, but these errors were encountered: