Skip to content

Commit d6b82a6

Browse files
Claudehotlong
andauthored
fix: add path aliases to vitest config for plugin-hono-server
Resolves module resolution issues in tests by adding aliases for @objectstack/core and @objectstack/spec to vitest.config.ts Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 47af687 commit d6b82a6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
22

33
import { defineConfig } from 'vitest/config';
4+
import path from 'path';
45

56
export default defineConfig({
67
test: {
78
globals: true,
89
environment: 'node',
910
},
11+
resolve: {
12+
alias: {
13+
'@objectstack/core': path.resolve(__dirname, '../../core/src'),
14+
'@objectstack/spec': path.resolve(__dirname, '../../spec/src'),
15+
},
16+
},
1017
});

0 commit comments

Comments
 (0)