fix(valibot-validator): update Hono version and fix test code (#663)
* fix(valibot-validator): update Hono and fix test code * chore: update lockfile * chore: add changeset * chore: remove changesetpull/700/head
parent
9443cb018a
commit
1bd5cdcd09
|
@ -31,7 +31,7 @@
|
|||
"valibot": ">=0.31.0 <1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"hono": "^4.0.10",
|
||||
"hono": "^4.5.1",
|
||||
"jest": "^29.7.0",
|
||||
"rimraf": "^5.0.5",
|
||||
"valibot": "^0.31.0"
|
||||
|
|
|
@ -2,6 +2,7 @@ import { Hono } from 'hono'
|
|||
import type { Equal, Expect } from 'hono/utils/types'
|
||||
import { number, object, objectAsync, optional, optionalAsync, string } from 'valibot'
|
||||
import { vValidator } from '../src'
|
||||
import { StatusCode } from 'hono/utils/http-status'
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
type ExtractSchema<T> = T extends Hono<infer _, infer S> ? S : never
|
||||
|
@ -57,6 +58,8 @@ describe('Basic', () => {
|
|||
success: boolean
|
||||
message: string
|
||||
}
|
||||
status: StatusCode
|
||||
outputFormat: 'json'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -214,6 +217,8 @@ describe('Async', () => {
|
|||
success: boolean
|
||||
message: string
|
||||
}
|
||||
status: StatusCode
|
||||
outputFormat: 'json'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue