39 lines
870 B
JavaScript
39 lines
870 B
JavaScript
import { defineConfig } from 'vitest/config'
|
|
import { minifyHtmlLiteralsRollupPlugin } from './config/minifyHtmlLiteralsRollupPlugin.js'
|
|
import { buildStylesRollupPlugin } from './config/buildStylesRollupPlugin.js'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
minifyHtmlLiteralsRollupPlugin(),
|
|
buildStylesRollupPlugin()
|
|
],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: [
|
|
'./config/vitest.setup.js'
|
|
],
|
|
testTimeout: 60000,
|
|
coverage: {
|
|
enabled: true,
|
|
provider: 'istanbul',
|
|
reporter: ['text', 'html', 'clover', 'json', 'lcov'],
|
|
include: [
|
|
'src/'
|
|
],
|
|
exclude: [
|
|
'bin/',
|
|
'test/',
|
|
'i18n/',
|
|
'src/picker/i18n/'
|
|
],
|
|
thresholds: {
|
|
statements: 100,
|
|
branches: 100,
|
|
functions: 100,
|
|
lines: 100
|
|
}
|
|
}
|
|
}
|
|
})
|