MatcherPatternQuery,
MatcherPatternHash,
} from './matcher-pattern'
-import { NEW_MatcherRecord } from '../old/resolver-dynamic'
import { miss } from './errors'
export const ANY_PATH_PATTERN_MATCHER: MatcherPatternPath<{
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
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: [],
'src/experimental/index.ts',
// FIXME: add more tests
'src/experimental/**/*.ts',
+ 'src/**/test-utils.ts',
],
},
typecheck: {