test: ui alias

This commit is contained in:
zernonia 2024-02-06 11:40:29 +08:00
parent 8c7f816502
commit 7fbc24682b
2 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,7 @@
}, },
"aliases": { "aliases": {
"utils": "~/lib/utils", "utils": "~/lib/utils",
"components": "~/components" "components": "~/components",
"ui": "~/ui"
} }
} }

View File

@ -97,6 +97,7 @@ test('get config', async () => {
}, },
aliases: { aliases: {
components: '~/components', components: '~/components',
ui: '~/ui',
utils: '~/lib/utils', utils: '~/lib/utils',
}, },
framework: 'Vite', framework: 'Vite',
@ -119,7 +120,7 @@ test('get config', async () => {
ui: path.resolve( ui: path.resolve(
__dirname, __dirname,
'../fixtures/config-full', '../fixtures/config-full',
'./src/components', './src/ui',
), ),
utils: path.resolve( utils: path.resolve(
__dirname, __dirname,