Skip to content

Commit

Permalink
chore(test): replace deprecated vitest type (#3338)
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuaki640 authored Aug 31, 2024
1 parent 18f937d commit 72f4c9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/router/common.case.test.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 72f4c9d

Please sign in to comment.