import '@testing-library/jest-dom' // The app defaults to Swedish when the browser reports a Swedish locale (see // src/i18n/LanguageContext.ts). jsdom's default navigator.language is // 'en-US', which would silently flip every component test that renders // Swedish text (the vast majority of the suite, since the app pre-dates // English support). Pin the test environment to a Swedish locale so // component tests keep asserting real, current copy instead of reaching for // English by accident; tests for the i18n system itself override this // per-test to exercise detection. Object.defineProperty(window.navigator, 'language', { value: 'sv-SE', configurable: true, })