File tree Expand file tree Collapse file tree 2 files changed +1
-27
lines changed
src/experimental/route-resolver/matchers Expand file tree Collapse file tree 2 files changed +1
-27
lines changed Original file line number Diff line number Diff line change 44 MatcherPatternQuery ,
55 MatcherPatternHash ,
66} from './matcher-pattern'
7- import { NEW_MatcherRecord } from '../old/resolver-dynamic'
87import { miss } from './errors'
98
109export 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
Original file line number Diff line number Diff line change 11import { defineConfig } from 'vitest/config'
22import Vue from '@vitejs/plugin-vue'
3- import { fileURLToPath } from 'node:url'
43
5- const __dirname = new URL ( '.' , import . meta. url ) . pathname
64export 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 : {
You can’t perform that action at this time.
0 commit comments