From 3eaa56f0306ead818f64c3d99fc6d230d9b970a4 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Wed, 18 Feb 2026 20:42:03 -0500 Subject: HERE WE GO, HERE WE GO, HERE WE GO --- jb-ui/jest.config.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 jb-ui/jest.config.ts (limited to 'jb-ui/jest.config.ts') diff --git a/jb-ui/jest.config.ts b/jb-ui/jest.config.ts new file mode 100644 index 0000000..f4dba3e --- /dev/null +++ b/jb-ui/jest.config.ts @@ -0,0 +1,22 @@ +// 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', + // setupFilesAfterEnv: ['./setupTests.ts'], + transform: { + '^.+\\.tsx?$': ['ts-jest', { + tsconfig: 'tsconfig.json', + diagnostics: false, + }], + }, + moduleNameMapper: { + '\\.(css|less|scss|sass)$': 'identity-obj-proxy', + '^@/(.*)$': '/src/$1', + }, + +}; \ No newline at end of file -- cgit v1.2.3