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.
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