17 lines
421 B
TypeScript
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: {} } },
|
|
});
|