Skip to content

Commit d8a828b

Browse files
Claudehotlong
andauthored
fix: add missing vitest.config.ts for driver-memory and service-ai
These packages were missing vitest configuration files, causing test failures in CI. Added configs with proper path aliases for @objectstack/core and @objectstack/spec. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent d6b82a6 commit d8a828b

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
2+
3+
import { defineConfig } from 'vitest/config';
4+
import path from 'path';
5+
6+
export default defineConfig({
7+
test: {
8+
globals: true,
9+
environment: 'node',
10+
},
11+
resolve: {
12+
alias: {
13+
'@objectstack/core': path.resolve(__dirname, '../../core/src'),
14+
'@objectstack/spec': path.resolve(__dirname, '../../spec/src'),
15+
},
16+
},
17+
});
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
2+
3+
import { defineConfig } from 'vitest/config';
4+
import path from 'path';
5+
6+
export default defineConfig({
7+
test: {
8+
globals: true,
9+
environment: 'node',
10+
},
11+
resolve: {
12+
alias: {
13+
'@objectstack/core': path.resolve(__dirname, '../../../core/src'),
14+
'@objectstack/spec': path.resolve(__dirname, '../../../spec/src'),
15+
},
16+
},
17+
});

0 commit comments

Comments
 (0)