emoji-picker-element/vitest.config.js

39 lines
870 B
JavaScript
Raw Normal View History

2024-03-09 05:42:37 +01:00
import { defineConfig } from 'vitest/config'
2024-03-09 18:13:23 +01:00
import { minifyHtmlLiteralsRollupPlugin } from './config/minifyHtmlLiteralsRollupPlugin.js'
import { buildStylesRollupPlugin } from './config/buildStylesRollupPlugin.js'
2024-03-09 05:42:37 +01:00
export default defineConfig({
2024-03-09 18:13:23 +01:00
plugins: [
minifyHtmlLiteralsRollupPlugin(),
buildStylesRollupPlugin()
2024-03-09 18:13:23 +01:00
],
2024-03-09 05:42:37 +01:00
test: {
globals: true,
environment: 'jsdom',
setupFiles: [
2024-03-09 18:24:45 +01:00
'./config/vitest.setup.js'
2024-03-09 05:42:37 +01:00
],
testTimeout: 60000,
2024-03-09 18:13:23 +01:00
coverage: {
2024-03-09 18:24:45 +01:00
enabled: true,
2024-03-09 18:13:23 +01:00
provider: 'istanbul',
2024-03-09 18:24:45 +01:00
reporter: ['text', 'html', 'clover', 'json', 'lcov'],
2024-03-09 18:13:23 +01:00
include: [
'src/'
],
exclude: [
'bin/',
'test/',
'i18n/',
'src/picker/i18n/'
],
thresholds: {
2024-03-09 05:42:37 +01:00
statements: 100,
branches: 100,
functions: 100,
lines: 100
}
}
}
})