| 1 | import { fileURLToPath } from 'node:url';
|
| 2 | import { defineConfig } from 'vitest/config';
|
| 3 |
|
| 4 | const fromRoot = (path: string) => fileURLToPath(new URL(path, import.meta.url));
|
| 5 |
|
| 6 | export default defineConfig({
|
| 7 | resolve: {
|
| 8 | alias: {
|
| 9 | '@openclasp/protocol': fromRoot('./packages/protocol/src/index.ts'),
|
| 10 | '@openclasp/core': fromRoot('./packages/core/src/index.ts'),
|
| 11 | '@openclasp/sdk': fromRoot('./packages/sdk/src/index.ts'),
|
| 12 | '@openclasp/sidecar': fromRoot('./packages/sidecar/src/index.ts'),
|
| 13 | '@openclasp/persistence': fromRoot('./packages/persistence/src/index.ts'),
|
| 14 | },
|
| 15 | },
|
| 16 | test: { coverage: { reporter: ['text', 'html'] } },
|
| 17 | });
|