Skip to content

Commit f600ab7

Browse files
committed
style: lint errors
1 parent 1c928bd commit f600ab7

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/contracts/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { z } from 'zod'
2-
import type { Schema } from '../schema'
32

43
/**
54
* The shape of the validate fn

tests/zod.spec.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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',

0 commit comments

Comments
 (0)