mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-15 06:12:50 -07:00
ci: fix Vitest alias by resolving path and importing path
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import path from 'node:path';
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
@@ -17,7 +18,10 @@ export default defineConfig({
|
||||
alias:
|
||||
process.env.USE_PUBLISHED_PACKAGES === 'true'
|
||||
? {
|
||||
'@google/gemini-cli-core': '@google-gemini/gemini-cli-core',
|
||||
'@google/gemini-cli-core': path.resolve(
|
||||
__dirname,
|
||||
'../node_modules/@google-gemini/gemini-cli-core',
|
||||
),
|
||||
}
|
||||
: {},
|
||||
reporters: ['default'],
|
||||
|
||||
Reference in New Issue
Block a user