keycloak-scim/vitest.setup.ts
2022-07-07 07:23:54 +02:00

17 lines
421 B
TypeScript

import matchers from "@testing-library/jest-dom/matchers";
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import { expect } from "vitest";
expect.extend(matchers);
i18n.use(initReactI18next).init({
lng: "en",
fallbackLng: "en",
// have a common namespace used around the full app
ns: ["translations"],
defaultNS: "translations",
resources: { en: { translations: {} } },
});