We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38f796e commit 8c495e8Copy full SHA for 8c495e8
tests/zod.spec.ts
@@ -221,12 +221,13 @@ test.group('Zod validation adaptater', () => {
221
debug: true,
222
})
223
224
- // Test without variable
225
await fs.create(ENV_FILENAME, '')
+
226
// @ts-ignore
227
const { define } = await plugin.config({ root: fs.basePath }, viteEnvConfig)
228
- assert.equal(define['import.meta.env.VITE_OPTIONAL_ZOD'], '"d"')
229
const logs = plugin.ui.logger.getLogs()
230
+ assert.equal(define['import.meta.env.VITE_OPTIONAL_ZOD'], '"d"')
231
assert.deepEqual(logs[0].message, 'cyan([vite-plugin-validate-env]) debug process.env content')
232
assert.deepInclude(logs[1].message, 'cyan(VITE_OPTIONAL_ZOD): d')
233
0 commit comments