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:
parent
18f937d3be
commit
72f4c9dc2c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user