mirror of
https://github.com/broekema41/obsidian-vcf-contacts.git
synced 2026-07-22 05:42:58 +00:00
26 lines
726 B
TypeScript
26 lines
726 B
TypeScript
// vitest.config.ts
|
|
import * as path from "node:path";
|
|
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
obsidian: path.resolve(__dirname, 'tests/setup/emptyObsidianMock.ts'),
|
|
src: path.resolve(__dirname, './src'),
|
|
tests: path.resolve(__dirname, './tests'),
|
|
},
|
|
},
|
|
test: {
|
|
include: ['tests/**/*.spec.ts'],
|
|
globals: true,
|
|
environment: 'node',
|
|
coverage: {
|
|
provider: 'istanbul',
|
|
reporter: ['text', 'html'],
|
|
reportsDirectory: './coverage',
|
|
include: ['src/context/*.ts', 'src/contacts/vcard/**/*.ts', 'src/sync/**/*.ts', 'src/util/photoLine.ts'],
|
|
exclude: ['src/**/*.tsx', 'src/**/*.d.ts']
|
|
},
|
|
},
|
|
});
|