feat(phase-bc): TOML plugin manifests + Solid vitest preset

Plugin TOML support (-tags wazero):
- manifest_toml.go: tryLoadPluginTOML using BurntSushi/toml v1.6.0
- manifest_nottoml.go: no-op stub for default build
- loader.go: prefers plugin.toml, falls back to plugin.json

Solid vitest preset:
- vitest.config.ts: add vite-plugin-solid, expand include to
  src/components/solid/**/*.test.tsx — Badge.test.tsx now runs
  automatically as part of npm test (112 files / 3188 tests)
This commit is contained in:
J3vb
2026-04-06 23:25:16 +02:00
parent ddaaadcd43
commit ae496082b3
7 changed files with 91 additions and 18 deletions
+12 -1
View File
@@ -1,7 +1,14 @@
import { defineConfig } from "vitest/config";
import { resolve } from "path";
import solidPlugin from "vite-plugin-solid";
export default defineConfig({
plugins: [
// Transform Solid JSX/TSX for component tests under src/components/solid/.
solidPlugin({
include: ["src/components/solid/**/*.{ts,tsx,js,jsx}"],
}),
],
resolve: {
alias: {
"@lib": resolve(__dirname, "src/lib"),
@@ -13,7 +20,11 @@ export default defineConfig({
},
test: {
environment: "jsdom",
include: ["tests/**/*.test.ts"],
include: [
"tests/**/*.test.ts",
// Solid component tests live next to the source they test.
"src/components/solid/**/*.test.tsx",
],
coverage: {
provider: "v8",
include: ["src/**/*.ts"],