Julien-R44 / vite-plugin-validate-env

✅ Vite plugin for validating your environment variables
MIT License
164 stars 6 forks source link

fix: show zod default values #20

Closed SimeonC closed 9 months ago

SimeonC commented 9 months ago

If a zod value is defaulted we should show the default, not undefined.

This also fixes the tests so that the logs do not bleed into other tests causing false results. I would have liked to change this to a class to avoid having to pass the UI argument around but didn't think it'd make that much difference to the code and it'd be more changes than just the bugfix.

This is a followup to https://github.com/Julien-R44/vite-plugin-validate-env/pull/14

Julien-R44 commented 9 months ago

Thanks!