build(test): run unit tests with vitest and jsdom

Karma needed headless Chrome. Vitest with jsdom runs with no browser.
Lighthouse CI now gets Chrome from @puppeteer/browsers.
Two CSS font tests are dropped: jsdom does not apply real CSS.
This commit is contained in:
lobo committed 2026-10-13 09:02:45 +02:00
1 parent dd7c9f6e3d
commit 4e59770e53
14 files changed
+751 -1865

No files matched your search

-2
View File
@@ -1,8 +1,6 @@
# Build
FROM node:22-alpine AS build
WORKDIR /app
# The production build never runs tests, so skip Puppeteer's Chrome download.
ENV PUPPETEER_SKIP_DOWNLOAD=1
COPY package*.json ./
RUN npm ci
COPY . .