aboutsummaryrefslogtreecommitdiff
path: root/jest.config.ts
blob: b477474790d318808e98f592c6b6dc740241485e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Configures Jest, the testing engine
// -- Sets test environment, module resolution, and TS integration via ts-jest.
// -- Must align with tsconfig.json and sometimes vite.config.mts.
// -- Must match paths and module resolution from tsconfig.json.
// -- Uses ts-jest to compile TS like Vite does.

export default {
    preset: 'ts-jest',
    testEnvironment: 'jsdom',
    moduleNameMapper: {
        '\\.(css|less|scss|sass)$': 'identity-obj-proxy',
    },
};