| 1 | import { defineConfig } from 'vitest/config' |
| 2 | import { fileURLToPath } from 'node:url' |
| 3 | |
| 4 | export default defineConfig({ |
| 5 | resolve: { |
| 6 | alias: { |
| 7 | '@arcsin1/html2pptx/animation': fileURLToPath( |
| 8 | new URL('../html2pptx/src/animation-writer.ts', import.meta.url) |
| 9 | ), |
| 10 | '@arcsin1/html2pptx/ooxml': fileURLToPath( |
| 11 | new URL('../html2pptx/src/ooxml-writer.ts', import.meta.url) |
| 12 | ), |
| 13 | '@arcsin1/html2pptx/node': fileURLToPath(new URL('../html2pptx/src/node.ts', import.meta.url)), |
| 14 | '@arcsin1/html2pptx': fileURLToPath(new URL('../html2pptx/src/index.ts', import.meta.url)), |
| 15 | '@renderer': fileURLToPath(new URL('./src/renderer/src', import.meta.url)), |
| 16 | '@shared': fileURLToPath(new URL('./src/shared', import.meta.url)) |
| 17 | } |
| 18 | }, |
| 19 | test: { |
| 20 | globals: true, |
| 21 | include: ['tests/**/*.test.ts'], |
| 22 | testTimeout: 10000, |
| 23 | environmentMatchGlobs: [ |
| 24 | ['tests/unit/runtime/**', 'happy-dom'] |
| 25 | ] |
| 26 | } |
| 27 | }) |
| 28 |