Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by yasuaki640 · committed by GitHub · parent 18f937d · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • tests:+4 added−4 removed

1 file+4 added−4 removed

modified:src/router/common.case.test.ts+4 added-4 removed
1import type { Suite } from 'vitest'1import type { RunnerTestSuite } from 'vitest'2import type { ParamIndexMap, Params, Router } from '../router'34const getSuiteHierarchy = (suite?: Suite) => {5 const res: Suite[] = []6 let s: Suite | undefined = suite4const getSuiteHierarchy = (suite?: RunnerTestSuite) => {5 const res: RunnerTestSuite[] = []6 let s: RunnerTestSuite | undefined = suite7 while (s) {8 res.unshift(s)9 s = s.suite10 }
773 unmodified lines