mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
reformat
This commit is contained in:
parent
325b61dc4f
commit
f2fe31fc02
@ -1,7 +1,7 @@
|
||||
/// <reference types="vitest" />
|
||||
import path from "path";
|
||||
import { defineConfig } from 'vite'
|
||||
import preact from '@preact/preset-vite'
|
||||
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/
|
||||
@ -9,14 +9,17 @@ export default defineConfig({
|
||||
define: {
|
||||
'import.meta.vitest': 'undefined',
|
||||
},
|
||||
plugins: [preact(), monacoEditorPlugin.default({
|
||||
plugins: [
|
||||
preact(),
|
||||
monacoEditorPlugin.default({
|
||||
customWorkers: [{ label: 'yaml', entry: 'monaco-yaml/yaml.worker' }],
|
||||
languageWorkers: ['editorWorkerService'], // we don't use any of the default languages
|
||||
})],
|
||||
}),
|
||||
],
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
alias: {
|
||||
'testing-library': path.resolve(__dirname, "./__test__/testing-library.js")
|
||||
'testing-library': path.resolve(__dirname, './__test__/testing-library.js'),
|
||||
},
|
||||
setupFiles: ['./__test__/test-setup.ts'],
|
||||
includeSource: ['src/**/*.{js,jsx,ts,tsx}'],
|
||||
@ -25,6 +28,6 @@ export default defineConfig({
|
||||
},
|
||||
mockReset: true,
|
||||
restoreMocks: true,
|
||||
globals: true
|
||||
globals: true,
|
||||
},
|
||||
})
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user