mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
7888059c9f
* Add raw config endpoint * Add config editor * Add code editor * Add error * Add ability to copy config * Only show the save button when code has been edited * Update errors * Remove debug config from system page * Break out config saving steps to pinpoint where error occurred. * Show correct config errors * Switch to monaco editor * Adjust UI colors and behavior * Get yaml validation working * Set success color
29 lines
809 B
TypeScript
29 lines
809 B
TypeScript
/// <reference types="vitest" />
|
|
import path from "path";
|
|
import { defineConfig } from 'vite'
|
|
import preact from '@preact/preset-vite'
|
|
import monacoEditorPlugin from 'vite-plugin-monaco-editor';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
define: {
|
|
'import.meta.vitest': 'undefined',
|
|
},
|
|
plugins: [preact(), monacoEditorPlugin.default({
|
|
customWorkers: [{label: 'yaml', entry: 'monaco-yaml/yaml.worker'}]
|
|
})],
|
|
test: {
|
|
environment: 'jsdom',
|
|
alias: {
|
|
'testing-library': path.resolve(__dirname, "./__test__/testing-library.js")
|
|
},
|
|
setupFiles: ['./__test__/test-setup.ts'],
|
|
includeSource: ['src/**/*.{js,jsx,ts,tsx}'],
|
|
coverage: {
|
|
reporter: ['text-summary', 'text'],
|
|
},
|
|
mockReset: true,
|
|
restoreMocks: true,
|
|
globals: true
|
|
},
|
|
}) |