Skip to content

Commit

Permalink
fix(valibot-validator): support latest Hono
Browse files Browse the repository at this point in the history
  • Loading branch information
nakasyou committed Jun 8, 2024
1 parent 56cad58 commit 23f41a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/valibot-validator/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Hono } from 'hono'
import type { Equal, Expect } from 'hono/utils/types'
import { number, object, string, optional, numberAsync, objectAsync, stringAsync, optionalAsync } 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
Expand Down Expand Up @@ -57,6 +58,8 @@ describe('Basic', () => {
success: boolean
message: string
}
outputFormat: 'json'
status: StatusCode
}
}
}
Expand Down Expand Up @@ -214,6 +217,8 @@ describe('Async', () => {
success: boolean
message: string
}
outputFormat: 'json'
status: StatusCode
}
}
}
Expand Down

0 comments on commit 23f41a6

Please sign in to comment.