Skip to content

Commit 08f4c4e

Browse files
committed
test: remove unused utils
1 parent 3c493f1 commit 08f4c4e

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

packages/router/src/experimental/route-resolver/matchers/test-utils.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
MatcherPatternQuery,
55
MatcherPatternHash,
66
} from './matcher-pattern'
7-
import { NEW_MatcherRecord } from '../old/resolver-dynamic'
87
import { miss } from './errors'
98

109
export const ANY_PATH_PATTERN_MATCHER: MatcherPatternPath<{
@@ -62,27 +61,3 @@ export const ANY_HASH_PATTERN_MATCHER: MatcherPatternHash<// hash could be named
6261
match: hash => ({ hash: hash ? hash.slice(1) : null }),
6362
build: ({ hash }) => (hash ? `#${hash}` : ''),
6463
}
65-
66-
export const EMPTY_PATH_ROUTE = {
67-
name: 'no params',
68-
path: EMPTY_PATH_PATTERN_MATCHER,
69-
score: [[80]],
70-
children: [],
71-
parent: undefined,
72-
} satisfies NEW_MatcherRecord
73-
74-
export const ANY_PATH_ROUTE = {
75-
name: 'any path',
76-
path: ANY_PATH_PATTERN_MATCHER,
77-
score: [[-10]],
78-
children: [],
79-
parent: undefined,
80-
} satisfies NEW_MatcherRecord
81-
82-
export const USER_ID_ROUTE = {
83-
name: 'user-id',
84-
path: USER_ID_PATH_PATTERN_MATCHER,
85-
score: [[80], [70]],
86-
children: [],
87-
parent: undefined,
88-
} satisfies NEW_MatcherRecord

packages/router/vitest.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { defineConfig } from 'vitest/config'
22
import Vue from '@vitejs/plugin-vue'
3-
import { fileURLToPath } from 'node:url'
43

5-
const __dirname = new URL('.', import.meta.url).pathname
64
export default defineConfig({
75
resolve: {
86
alias: [],
@@ -28,6 +26,7 @@ export default defineConfig({
2826
'src/experimental/index.ts',
2927
// FIXME: add more tests
3028
'src/experimental/**/*.ts',
29+
'src/**/test-utils.ts',
3130
],
3231
},
3332
typecheck: {

0 commit comments

Comments
 (0)