File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed
Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change 11import type { z } from 'zod'
2- import type { Schema } from '../schema'
32
43/**
54 * The shape of the validate fn
Original file line number Diff line number Diff line change @@ -54,22 +54,6 @@ test.group('Zod validation adaptater', () => {
5454 await assert . rejects ( fn , 'Invalid value for "VITE_LONG_STRING" : Max 10 characters' )
5555 } )
5656
57- test ( 'Boolean value' , async ( { assert } ) => {
58- const plugin = ValidateEnv ( {
59- validator : 'zod' ,
60- schema : {
61- VITE_BOOLEAN : z . preprocess ( ( value ) => value === 'true' , z . boolean ( ) ) ,
62- } ,
63- } )
64-
65- await fs . add ( `.env.development` , `VITE_BOOLEAN=true` )
66-
67- await plugin . config ! ( viteConfig , viteEnvConfig )
68-
69- // console.log(process.env.VITE_BOOLEAN)
70- // assert.deepEqual(process.env.VITE_BOOLEAN, true)
71- } ) . skip ( )
72-
7357 test ( 'Refine value' , async ( { assert } ) => {
7458 const plugin = ValidateEnv ( {
7559 validator : 'zod' ,
You can’t perform that action at this time.
0 commit comments