Files
HiveGrid-Wireframes/hivegrid-cloud/vitest.setup.ts
T

26 lines
788 B
TypeScript

process.env.APP_NAME ??= "ToolCTRL Test";
process.env.DATABASE_URL ??= "postgres://toolctrl:test@example.invalid:5432/toolctrl_test";
process.env.SESSION_SECRET ??= "test-session-secret";
process.env.JWT_SECRET ??= "test-jwt-secret";
process.env.API_ACCESS_TOKEN ??= "test-api-access-token";
process.env.CRYPTO_SECRET ??= "test-crypto-secret";
import i18next from "i18next";
import enTranslations from "./apps/web/public/locales/en/translations.json";
if (!i18next.isInitialized) {
await i18next.init({
lng: "en",
fallbackLng: "en",
ns: ["translations", "translation"],
defaultNS: "translations",
resources: {
en: {
translation: enTranslations,
translations: enTranslations,
},
},
interpolation: { escapeValue: false },
});
}