Files
genoffice/packages/pptx-render/vitest.config.ts
T
merrick-2002andGenOffice f68df70e22 Sync snapshot (2026-08-20) (#123)
- Add fully local PDF to Word, PowerPoint, and Excel conversion
- Add bring-your-own-key AI providers - Claude, OpenAI, Gemini, DeepSeek, Kimi, GLM, Qwen, Doubao, MiniMax, Grok, Mistral, OpenRouter, and custom OpenAI-compatible endpoints - with a refreshed AI settings UI
- Rework the Slides AI editing surface: canonical edit-op registry, atomic transactions with rollback, durable element ids, and batched apply_ops
- Improve Slides fidelity: chart, font, gradient, table-style, and text-shaping fixes, plus PPT-parity line editing and adjust handles
- Polish Docs: password-protection dialogs, anchored-image wrapping fixes, and selection and clipboard fixes
- Add themed dropdowns suite-wide with accent-derived selection states

Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
2026-08-21 00:33:18 +08:00

25 lines
870 B
TypeScript

import { dirname, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vitest/config'
const here = dirname(fileURLToPath(import.meta.url))
export default defineConfig({
// Always resolve to this repo's workspace sources (consistent with tsconfig paths)
resolve: {
alias: {
// Subpath before the bare name: string aliases are prefix replacements
'@genoffice/pptx-engine/table-grid': resolve(here, '../pptx-engine/src/table-grid.ts'),
'@genoffice/pptx-engine/identity': resolve(here, '../pptx-engine/src/identity.ts'),
'@genoffice/pptx-engine/background-promote': resolve(
here,
'../pptx-engine/src/background-promote.ts',
),
'@genoffice/pptx-engine': resolve(here, '../pptx-engine/src/index.ts'),
},
},
test: {
include: ['tests/**/*.test.ts'],
},
})