@fmidev/smartmet-alert-client
Version:
Web application for viewing weather and flood alerts
44 lines (42 loc) • 1.03 kB
JavaScript
import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import path from 'path'
export default defineConfig({
plugins: [vue()],
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler',
silenceDeprecations: ['import', 'legacy-js-api'],
},
},
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./tests/setup.ts'],
// Custom reporter that writes tests/__artifacts__/review.html at the
// end of every run for visual comparison of map SVG snapshots.
reporters: ['default', './tests/reporters/snapshotReviewReporter.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/',
'tests/',
'dist/',
'public/',
'*.config.js',
'.eslintrc.js',
],
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
define: {
__APP_VERSION__: JSON.stringify('test-version'),
},
})