]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test: remove unused utils
authorEduardo San Martin Morote <posva13@gmail.com>
Sat, 16 Aug 2025 15:52:20 +0000 (17:52 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Sat, 16 Aug 2025 15:52:20 +0000 (17:52 +0200)
packages/router/src/experimental/route-resolver/matchers/test-utils.ts
packages/router/vitest.config.ts

index b4336e95f56ea262c597c3195fdab3b0eb22e686..da0bf08e1ddfd50429fcd6b617a2f6e658fd1763 100644 (file)
@@ -4,7 +4,6 @@ import {
   MatcherPatternQuery,
   MatcherPatternHash,
 } from './matcher-pattern'
-import { NEW_MatcherRecord } from '../old/resolver-dynamic'
 import { miss } from './errors'
 
 export const ANY_PATH_PATTERN_MATCHER: MatcherPatternPath<{
@@ -62,27 +61,3 @@ export const ANY_HASH_PATTERN_MATCHER: MatcherPatternHash<// hash could be named
   match: hash => ({ hash: hash ? hash.slice(1) : null }),
   build: ({ hash }) => (hash ? `#${hash}` : ''),
 }
-
-export const EMPTY_PATH_ROUTE = {
-  name: 'no params',
-  path: EMPTY_PATH_PATTERN_MATCHER,
-  score: [[80]],
-  children: [],
-  parent: undefined,
-} satisfies NEW_MatcherRecord
-
-export const ANY_PATH_ROUTE = {
-  name: 'any path',
-  path: ANY_PATH_PATTERN_MATCHER,
-  score: [[-10]],
-  children: [],
-  parent: undefined,
-} satisfies NEW_MatcherRecord
-
-export const USER_ID_ROUTE = {
-  name: 'user-id',
-  path: USER_ID_PATH_PATTERN_MATCHER,
-  score: [[80], [70]],
-  children: [],
-  parent: undefined,
-} satisfies NEW_MatcherRecord
index 4bcee86ea3527b8be6083cca3e7389ea556ddf38..35e6576d2639e1da9d8888e1579586572418fb93 100644 (file)
@@ -1,8 +1,6 @@
 import { defineConfig } from 'vitest/config'
 import Vue from '@vitejs/plugin-vue'
-import { fileURLToPath } from 'node:url'
 
-const __dirname = new URL('.', import.meta.url).pathname
 export default defineConfig({
   resolve: {
     alias: [],
@@ -28,6 +26,7 @@ export default defineConfig({
         'src/experimental/index.ts',
         // FIXME: add more tests
         'src/experimental/**/*.ts',
+        'src/**/test-utils.ts',
       ],
     },
     typecheck: {