bytemd/vitest.config.mjs

19 lines
438 B
JavaScript
Raw Normal View History

2023-01-04 14:57:56 +08:00
// @ts-check
import { sveltePreprocessor } from './scripts/utils.mjs'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
include: ['packages/bytemd/**/*.test.ts'],
globals: true,
environment: 'jsdom',
setupFiles: 'packages/bytemd/test/setup.ts',
},
plugins: [
svelte({
preprocess: [sveltePreprocessor],
}),
],
})