0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-22 02:27:49 +01:00

chore(test): replace deprecated vitest type (#3338)

This commit is contained in:
yasuaki640 2024-08-31 11:08:26 +09:00 committed by GitHub
parent 18f937d3be
commit 72f4c9dc2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,9 +1,9 @@
import type { Suite } from 'vitest'
import type { RunnerTestSuite } from 'vitest'
import type { ParamIndexMap, Params, Router } from '../router'
const getSuiteHierarchy = (suite?: Suite) => {
const res: Suite[] = []
let s: Suite | undefined = suite
const getSuiteHierarchy = (suite?: RunnerTestSuite) => {
const res: RunnerTestSuite[] = []
let s: RunnerTestSuite | undefined = suite
while (s) {
res.unshift(s)
s = s.suite