build: keep the test harness out of the image and the font bindings out of the export list

This commit is contained in:
Marc-André Bombeck committed 2026-10-22 08:38:04 +02:00
1 parent 5a9a6ce78b
commit 8f1f4dc691
2 files changed
+15 -7

No files matched your search

+6
View File
@@ -28,6 +28,12 @@ playwright/.cache
playwright.config.ts playwright.config.ts
vitest.config.mts vitest.config.mts
vitest.integration.config.mts vitest.integration.config.mts
vitest.mutation.config.mts
# The unit setup imports tests/ (excluded above); the image never runs it and
# the build's type check must not see a half-present test harness.
vitest.setup.ts
stryker.config.mjs
stryker.floors.json
tests tests
tests/ tests/
e2e e2e
+9 -7
View File
@@ -25,7 +25,9 @@ import localFont from "next/font/local";
// `next/font/local` is evaluated at build time from the literal arguments of // `next/font/local` is evaluated at build time from the literal arguments of
// each call, so every option below has to be written out in place. // each call, so every option below has to be written out in place.
export const interCyrillicExt = localFont({ // The bindings are never read: importing this module is what attaches the
// faces, so each name carries the leading underscore of an intended unused.
const _interCyrillicExt = localFont({
src: [ src: [
{ {
path: "./inter/inter-cyrillic-ext.woff2", path: "./inter/inter-cyrillic-ext.woff2",
@@ -61,7 +63,7 @@ export const interCyrillicExt = localFont({
], ],
}); });
export const interCyrillic = localFont({ const _interCyrillic = localFont({
src: [ src: [
{ path: "./inter/inter-cyrillic.woff2", weight: "400", style: "normal" }, { path: "./inter/inter-cyrillic.woff2", weight: "400", style: "normal" },
{ path: "./inter/inter-cyrillic.woff2", weight: "500", style: "normal" }, { path: "./inter/inter-cyrillic.woff2", weight: "500", style: "normal" },
@@ -80,7 +82,7 @@ export const interCyrillic = localFont({
], ],
}); });
export const interGreekExt = localFont({ const _interGreekExt = localFont({
src: [ src: [
{ path: "./inter/inter-greek-ext.woff2", weight: "400", style: "normal" }, { path: "./inter/inter-greek-ext.woff2", weight: "400", style: "normal" },
{ path: "./inter/inter-greek-ext.woff2", weight: "500", style: "normal" }, { path: "./inter/inter-greek-ext.woff2", weight: "500", style: "normal" },
@@ -96,7 +98,7 @@ export const interGreekExt = localFont({
], ],
}); });
export const interGreek = localFont({ const _interGreek = localFont({
src: [ src: [
{ path: "./inter/inter-greek.woff2", weight: "400", style: "normal" }, { path: "./inter/inter-greek.woff2", weight: "400", style: "normal" },
{ path: "./inter/inter-greek.woff2", weight: "500", style: "normal" }, { path: "./inter/inter-greek.woff2", weight: "500", style: "normal" },
@@ -116,7 +118,7 @@ export const interGreek = localFont({
], ],
}); });
export const interVietnamese = localFont({ const _interVietnamese = localFont({
src: [ src: [
{ path: "./inter/inter-vietnamese.woff2", weight: "400", style: "normal" }, { path: "./inter/inter-vietnamese.woff2", weight: "400", style: "normal" },
{ path: "./inter/inter-vietnamese.woff2", weight: "500", style: "normal" }, { path: "./inter/inter-vietnamese.woff2", weight: "500", style: "normal" },
@@ -136,7 +138,7 @@ export const interVietnamese = localFont({
], ],
}); });
export const interLatinExt = localFont({ const _interLatinExt = localFont({
src: [ src: [
{ path: "./inter/inter-latin-ext.woff2", weight: "400", style: "normal" }, { path: "./inter/inter-latin-ext.woff2", weight: "400", style: "normal" },
{ path: "./inter/inter-latin-ext.woff2", weight: "500", style: "normal" }, { path: "./inter/inter-latin-ext.woff2", weight: "500", style: "normal" },
@@ -156,7 +158,7 @@ export const interLatinExt = localFont({
], ],
}); });
export const interLatin = localFont({ const _interLatin = localFont({
src: [ src: [
{ path: "./inter/inter-latin.woff2", weight: "400", style: "normal" }, { path: "./inter/inter-latin.woff2", weight: "400", style: "normal" },
{ path: "./inter/inter-latin.woff2", weight: "500", style: "normal" }, { path: "./inter/inter-latin.woff2", weight: "500", style: "normal" },