refactor(web): update vitest configuration to merge with Vite config and add alias for utility path
Build, Test, and Push CFDM Docker Image / test (push) Successful in 3m22s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Failing after 1m29s
Build, Test, and Push CFDM Docker Image / update-wiki (push) Successful in 6s
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped
Build, Test, and Push CFDM Docker Image / test (push) Successful in 3m22s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Failing after 1m29s
Build, Test, and Push CFDM Docker Image / update-wiki (push) Successful in 6s
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped
- Changed import of 'path' to 'node:path' for better compatibility. - Merged existing Vite configuration with Vitest configuration. - Added alias for '@cfdm/ui/lib/utils' to streamline utility imports. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -1,10 +1,17 @@
|
|||||||
import { defineConfig } from 'vitest/config'
|
import path from 'node:path'
|
||||||
import path from 'path'
|
import { defineConfig, mergeConfig } from 'vitest/config'
|
||||||
|
import viteConfig from './vite.config'
|
||||||
|
|
||||||
export default defineConfig({
|
export default mergeConfig(
|
||||||
resolve: {
|
viteConfig,
|
||||||
alias: {
|
defineConfig({
|
||||||
'@': path.resolve(__dirname, './src'),
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
'@cfdm/ui/lib/utils': path.resolve(
|
||||||
|
__dirname,
|
||||||
|
'../../packages/ui/src/lib/utils.ts',
|
||||||
|
),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
}),
|
||||||
})
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user