From 72f4c9dc2c9a3e57f46fe518ce630bc8f101aa34 Mon Sep 17 00:00:00 2001 From: yasuaki640 Date: Sat, 31 Aug 2024 11:08:26 +0900 Subject: [PATCH] chore(test): replace deprecated vitest type (#3338) --- src/router/common.case.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/router/common.case.test.ts b/src/router/common.case.test.ts index 7b388e7b5..cac9c2ac7 100644 --- a/src/router/common.case.test.ts +++ b/src/router/common.case.test.ts @@ -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