mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-10-17 05:37:43 +00:00
fix(webui): shared sort header, coherent group sorting, real expand-state tests
This commit is contained in:
+14
-1
@@ -2,7 +2,11 @@ import { fileURLToPath, URL } from 'node:url'
|
||||
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { defineConfig } from 'vite'
|
||||
// vitest/config's defineConfig is vite's own, augmented with the `test`
|
||||
// field's types — importing from here (not 'vite') is what lets the
|
||||
// `test` block below type-check under vue-tsc -b without a separate
|
||||
// vitest.config.ts or a triple-slash type reference.
|
||||
import { defineConfig } from 'vitest/config'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
@@ -28,4 +32,13 @@ export default defineConfig({
|
||||
// polyfill has nothing to do here anyway.
|
||||
modulePreload: { polyfill: false },
|
||||
},
|
||||
test: {
|
||||
// Deliberately narrow: only lib/provider-expand.ts's pure state module
|
||||
// is under vitest right now (webui's test infra starts here, on
|
||||
// purpose — no snapshot/DOM/component testing this round). 'node' is
|
||||
// enough since the module touches no browser globals; jsdom is not
|
||||
// pulled in as a dependency for a module that doesn't need it.
|
||||
environment: 'node',
|
||||
include: ['src/**/*.spec.ts'],
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user