Refactor components and add tests for improved functionality and coverage
This commit is contained in:
1 parent
bbb76eaa31
commit
ab6cd7c162
13 files changed
+253
-54
No files matched your search
@@ -1,11 +1,14 @@
|
||||
// vitest.config.ts
|
||||
import { defineConfig } from "vitest/config"
|
||||
import { fileURLToPath } from "node:url"
|
||||
import solid from "vite-plugin-solid"
|
||||
|
||||
// Mirrors the tsconfig path aliases so modules under test can import via @lib/...
|
||||
const src = fileURLToPath(new URL("./src", import.meta.url))
|
||||
|
||||
export default defineConfig({
|
||||
// Compiles Solid JSX for the island render tests; Astro uses the same plugin for the app.
|
||||
plugins: [solid({ ssr: true })],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@lib": `${src}/lib`,
|
||||
|
||||
Reference in new issue
Block a user